MCPcopy Create free account
hub / github.com/SplootCode/splootcode / testLineGaps

Method testLineGaps

python/tests/test_text_generator.py:29–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 self.assertEqual(result, original)
28
29 def testLineGaps(self):
30 original = "# Something is going on here!\n##SPLOOTCODEEMPTYLINE\nprint('Hello, World!')\n##SPLOOTCODEEMPTYLINE\n##SPLOOTCODEEMPTYLINE"
31 expected = "# Something is going on here!\n\nprint('Hello, World!')\n\n"
32 sploot = splootFromPython(original)
33 result = convertSplootToText(sploot)
34 self.assertEqual(result, expected)
35
36 def test_empty_if_block(self):
37 original = "if True:\n pass"

Callers

nothing calls this directly

Calls 2

splootFromPythonFunction · 0.90
convertSplootToTextFunction · 0.90

Tested by

no test coverage detected