diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-05 21:02:49 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-05 21:02:49 -0800 |
commit | d17aaea3ddf73369af3c7fad3f42a23928d4009d (patch) | |
tree | 6ee2d517aebb45c07fe68baf38d338e35a9bd5ef /check.py | |
parent | b78563b607f3a851dee9495ad21307b23e2c2666 (diff) | |
download | binaryen-d17aaea3ddf73369af3c7fad3f42a23928d4009d.tar.gz binaryen-d17aaea3ddf73369af3c7fad3f42a23928d4009d.tar.bz2 binaryen-d17aaea3ddf73369af3c7fad3f42a23928d4009d.zip |
fix print, and add imports test
Diffstat (limited to 'check.py')
-rwxr-xr-x | check.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -83,7 +83,7 @@ if len(requested) == 0: #spec_tests = [] # XXX [os.path.join('spec', t) for t in sorted(os.listdir(os.path.join('test', 'spec')))] # 'address' : filed issue, test looks invalid # 'exports' : has a "return" https://github.com/WebAssembly/spec/issues/164 - spec_tests = [os.path.join('spec', t + '.wast') for t in ['conversions', 'endianness', 'f32_cmp', 'f32', 'f64_cmp', 'f64', 'float_exprs', 'forward', 'func_ptrs', 'functions', 'has_feature', 'i32']] + spec_tests = [os.path.join('spec', t + '.wast') for t in ['conversions', 'endianness', 'f32_cmp', 'f32', 'f64_cmp', 'f64', 'float_exprs', 'forward', 'func_ptrs', 'functions', 'has_feature', 'i32', 'i64', 'imports']] else: spec_tests = requested[:] @@ -103,6 +103,7 @@ for t in spec_tests: x = x.strip() if not x: return x v, t = x.split(' : ') + if v.endswith('.'): v = v[:-1] # remove trailing '.' return '(' + t + '.const ' + v + ')' expected = '\n'.join(map(fix, expected.split('\n'))) else: |