def test_utf16_textdecoder(self):
    self.set_setting('EXTRA_EXPORTED_RUNTIME_METHODS', ['UTF16ToString', 'stringToUTF16', 'lengthBytesUTF16'])
    self.emcc_args += ['--embed-file', (path_from_root('tests/utf16_corpus.txt') + '@/utf16_corpus.txt')]
    self.do_run(open(path_from_root('tests', 'benchmark_utf16.cpp')).read(), 'OK.')
def test_utf16_textdecoder(self):
    self.set_setting('EXTRA_EXPORTED_RUNTIME_METHODS', ['UTF16ToString', 'stringToUTF16', 'lengthBytesUTF16'])
    self.emcc_args += ['--embed-file', (path_from_root('tests/utf16_corpus.txt') + '@/utf16_corpus.txt')]
    self.do_run(open(path_from_root('tests', 'benchmark_utf16.cpp')).read(), 'OK.')