summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/check.py b/check.py
index 02d0f5a10..5973b8a3d 100755
--- a/check.py
+++ b/check.py
@@ -309,24 +309,6 @@ def run_spec_tests():
def check_expected(actual, expected):
if expected and os.path.exists(expected):
expected = open(expected).read()
-
- # fix it up, our pretty (i32.const 83) must become compared to a homely 83 : i32
- def fix_expected(x):
- x = x.strip()
- if not x:
- return x
- v, t = x.split(' : ')
- if v.endswith('.'):
- v = v[:-1] # remove trailing '.'
- return '(' + t + '.const ' + v + ')'
-
- def fix_actual(x):
- if '[trap ' in x:
- return ''
- return x
-
- expected = '\n'.join(map(fix_expected, expected.split('\n')))
- actual = '\n'.join(map(fix_actual, actual.split('\n')))
print(' (using expected output)')
actual = actual.strip()
expected = expected.strip()