MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / test_cube2hash

Method test_cube2hash

test/test_core.py:715–725  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

713 @also_with_standalone_wasm()
714 @needs_make('make')
715 def test_cube2hash(self):
716 # A good test of i64 math
717 self.do_run('// empty file', 'Usage: hashstring <seed>',
718 libraries=self.get_library('third_party/cube2hash', ['libcube2hash.a'], configure=None),
719 includes=[test_file('third_party/cube2hash')], assert_returncode=NON_ZERO)
720 js_out = self.output_name('src')
721
722 for text, output in [('fleefl', '892BDB6FD3F62E863D63DA55851700FDE3ACF30204798CE9'),
723 ('fleefl2', 'AA2CC5F96FC9D540CA24FDAF1F71E2942753DB83E8A81B61'),
724 ('64bitisslow', '64D8470573635EC354FEE7B7F87C566FCAF1EFB491041670')]:
725 self.do_run(js_out, 'hash value: ' + output, args=[text], no_build=True)
726
727 @only_wasm2js('tests 64-bit alignment of structs')
728 def test_align64(self):

Callers

nothing calls this directly

Calls 4

do_runMethod · 0.95
test_fileFunction · 0.90
get_libraryMethod · 0.80
output_nameMethod · 0.80

Tested by

no test coverage detected