From d17aaea3ddf73369af3c7fad3f42a23928d4009d Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 5 Nov 2015 21:02:49 -0800 Subject: fix print, and add imports test --- check.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'check.py') diff --git a/check.py b/check.py index 2e5252715..dd507d038 100755 --- a/check.py +++ b/check.py @@ -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: -- cgit v1.2.3