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

Method test_partial

Lib/test/test_codecs.py:2740–2777  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2738 self.assertEqual(decode(br"\U00110000", "replace"), ("\ufffd", 10))
2739
2740 def test_partial(self):
2741 self.check_partial(
2742 "\x00\t\n\r\\\xff\uffff\U00010000",
2743 [
2744 '',
2745 '',
2746 '',
2747 '\x00',
2748 '\x00',
2749 '\x00\t',
2750 '\x00\t',
2751 '\x00\t\n',
2752 '\x00\t\n',
2753 '\x00\t\n\r',
2754 '\x00\t\n\r',
2755 '\x00\t\n\r\\',
2756 '\x00\t\n\r\\',
2757 '\x00\t\n\r\\',
2758 '\x00\t\n\r\\',
2759 '\x00\t\n\r\\\xff',
2760 '\x00\t\n\r\\\xff',
2761 '\x00\t\n\r\\\xff',
2762 '\x00\t\n\r\\\xff',
2763 '\x00\t\n\r\\\xff',
2764 '\x00\t\n\r\\\xff',
2765 '\x00\t\n\r\\\xff\uffff',
2766 '\x00\t\n\r\\\xff\uffff',
2767 '\x00\t\n\r\\\xff\uffff',
2768 '\x00\t\n\r\\\xff\uffff',
2769 '\x00\t\n\r\\\xff\uffff',
2770 '\x00\t\n\r\\\xff\uffff',
2771 '\x00\t\n\r\\\xff\uffff',
2772 '\x00\t\n\r\\\xff\uffff',
2773 '\x00\t\n\r\\\xff\uffff',
2774 '\x00\t\n\r\\\xff\uffff',
2775 '\x00\t\n\r\\\xff\uffff\U00010000',
2776 ]
2777 )
2778
2779 @unittest.expectedFailure # TODO: RUSTPYTHON; IndexError: index out of range
2780 def test_incremental_surrogatepass(self):

Callers

nothing calls this directly

Calls 1

check_partialMethod · 0.80

Tested by

no test coverage detected