diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-10-29 16:44:44 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-10-29 16:44:44 -0700 |
commit | d9ae6b3dcccf32a46e92d18105dcf38702e25573 (patch) | |
tree | 66b6e8ba83015cb1412f04636b4035f7bdde5cd9 /check.py | |
parent | 067c77c9607764405bdf42023c3105a7e6ee81fd (diff) | |
download | binaryen-d9ae6b3dcccf32a46e92d18105dcf38702e25573.tar.gz binaryen-d9ae6b3dcccf32a46e92d18105dcf38702e25573.tar.bz2 binaryen-d9ae6b3dcccf32a46e92d18105dcf38702e25573.zip |
fix export printing
Diffstat (limited to 'check.py')
-rwxr-xr-x | check.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -34,8 +34,7 @@ for asm in tests: raise Exception('output .wast file does not exist') expected = open(os.path.join('test', wasm)).read() if actual != expected: - raise Exception("Expected to have '%s' == '%s', diff:\n\n%s" % ( - expected, actual, + raise Exception("incorrect output, diff:\n\n%s" % ( ''.join([a.rstrip()+'\n' for a in difflib.unified_diff(expected.split('\n'), actual.split('\n'), fromfile='expected', tofile='actual')]) )) |