diff options
-rwxr-xr-x | check.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -62,12 +62,13 @@ for asm in tests: reported = err.split(':')[1] start, end = reported.split('-') start_line, start_col = map(int, start.split('.')) - lines = expected.split('\n') + lines = open('temp.wast').read().split('\n') + print start_line, start_col print print '='*80 print lines[start_line-1] print (' '*(start_col-1)) + '^' - print (' '*(start_col-1)) + '|' + print (' '*(start_col-2)) + '/_\\' print '='*80 print err except Exception, e: |