MCPcopy Index your code
hub / github.com/RustPython/RustPython / assertScan

Method assertScan

Lib/test/test_json/test_scanstring.py:92–94  ·  view source on GitHub ↗
(given, expect)

Source from the content-addressed store, hash-verified

90 def test_surrogates(self):
91 scanstring = self.json.decoder.scanstring
92 def assertScan(given, expect):
93 self.assertEqual(scanstring(given, 1, True),
94 (expect, len(given)))
95
96 assertScan('"z\\ud834\\u0079x"', 'z\ud834yx')
97 assertScan('"z\\ud834\\udd20x"', 'z\U0001d120x')

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
scanstringFunction · 0.50
assertEqualMethod · 0.45

Tested by

no test coverage detected