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

Method assertTextDataIdentical

test/common.py:1103–1107  ·  view source on GitHub ↗
(self, text1, text2, msg=None,
                              fromfile='expected', tofile='actual')

Source from the content-addressed store, hash-verified

1101 # Tests that the given two multiline text content are identical, modulo line
1102 # ending differences (\r\n on Windows, \n on Unix).
1103 def assertTextDataIdentical(self, text1, text2, msg=None,
1104 fromfile='expected', tofile='actual'):
1105 text1 = text1.replace('\r\n', '\n')
1106 text2 = text2.replace('\r\n', '\n')
1107 return self.assertIdentical(text1, text2, msg, fromfile, tofile)
1108
1109 def assertIdentical(self, values, y, msg=None,
1110 fromfile='expected', tofile='actual'):

Callers 10

assertFileContentsMethod · 0.95
check_output_sizesMethod · 0.80
test_file_packagerMethod · 0.80
test_stdin_preprocessMethod · 0.80
test_reproduceMethod · 0.80
test_dead_code_esmMethod · 0.80
test_source_mapMethod · 0.80

Calls 1

assertIdenticalMethod · 0.95

Tested by 9

check_output_sizesMethod · 0.64
test_file_packagerMethod · 0.64
test_stdin_preprocessMethod · 0.64
test_reproduceMethod · 0.64
test_dead_code_esmMethod · 0.64
test_source_mapMethod · 0.64