Skip to content

Commit 66a8eab

Browse files
committed
change .jack to .vm
1 parent 66207aa commit 66a8eab

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/tests/test_modules.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def runStudentCode(self, dirname, name):
1010
print(f'{process.stdout.strip()}\n{process.stderr.strip()}'.strip())
1111
except subprocess.CalledProcessError as err:
1212
error_message = str(err.stderr).strip()
13-
raise AssertionError(f'Unable to run student code on {dirname}/{name}.jack: "{error_message}"\n{err.stdout}'.strip())
13+
raise AssertionError(f'Unable to run student code on {dirname}/{name}.vm: "{error_message}"\n{err.stdout}'.strip())
1414
except subprocess.TimeoutExpired as err:
1515
raise TimeoutError(f'Student code timed out after {err.timeout} seconds:\n{str(err.stdout).strip()}')
1616

@@ -19,7 +19,7 @@ def assertValidAssembly(self, dirname, name):
1919
subprocess.run(['n2tAssembler', f'/autograder/source/{dirname}/{name}.asm'], check=True, text=True, capture_output=True, timeout=30)
2020
except subprocess.CalledProcessError as err:
2121
error_message = str(err.stderr).strip()
22-
raise AssertionError(f'Student\'s ASM is invalid, and could not be assembled: "{error_message}"\n{err.stdout}'.strip())
22+
raise AssertionError(f'Student\'s generated ASM is invalid, and could not be assembled: "{error_message}"\n{err.stdout}'.strip())
2323
except subprocess.TimeoutExpired as err:
2424
raise TimeoutError(f'Assembler timed out out after {err.timeout} seconds:\n{str(err.stdout).strip()}')
2525

@@ -31,7 +31,7 @@ def runCPUEmulator(self, dirname, name):
3131
print(f'Files differ!\n{diff}')
3232

3333
error_message = str(err.stderr).strip()
34-
raise AssertionError(f'Student\'s ASM did not pass the provided TST file: "{error_message}"\n{err.stdout}'.strip())
34+
raise AssertionError(f'Student\'s generated ASM did not pass the provided TST file: "{error_message}"\n{err.stdout}'.strip())
3535
except subprocess.TimeoutExpired as err:
3636
raise TimeoutError(f'Emulator timed out out after {err.timeout} seconds:\n{str(err.stdout).strip()}')
3737

0 commit comments

Comments
 (0)