MCPcopy Index your code
hub / github.com/python/cpython / test_added_tab_hint

Method test_added_tab_hint

Lib/test/test_difflib.py:98–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

96 self.assertEqual(second[2].size, 0)
97
98 def test_added_tab_hint(self):
99 # Check fix for bug #1488943
100 diff = list(difflib.Differ().compare(["\tI am a buggy"],["\t\tI am a bug"]))
101 self.assertEqual("- \tI am a buggy", diff[0])
102 self.assertEqual("? \t --\n", diff[1])
103 self.assertEqual("+ \t\tI am a bug", diff[2])
104 self.assertEqual("? +\n", diff[3])
105
106 def test_hint_indented_properly_with_tabs(self):
107 diff = list(difflib.Differ().compare(["\t \t \t^"], ["\t \t \t^\n"]))

Callers

nothing calls this directly

Calls 3

listClass · 0.85
compareMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected