Major overhaul getting started

This commit is contained in:
DarkFeather
2018-11-05 15:35:32 -06:00
parent 67f773bb45
commit d4a1aabfdc
12 changed files with 167 additions and 55 deletions

Binary file not shown.

15
tests/test_unit.py Normal file
View File

@@ -0,0 +1,15 @@
import os
import re
import shutil
def checkOutput(output):
for line in output.split('\n'):
if line == 'Hello world!': return True
return False
def test_c():
print(os.getcwd())
fh = os.popen("./helloworld", mode='r', buffering=-1)
output = fh.read()
retcode = fh.close()
assert retcode == None and checkOutput(output)