summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/check.py b/check.py
index b3978f739..ef7a7fed4 100755
--- a/check.py
+++ b/check.py
@@ -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: