Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_splitter_2(self):
"""Test splitter function."""
self.assertEqual(
area4.splitter("---", "Hello", "world"), "Hello\n---world\n---"
)
def test_splitter_3(self):
"""Test splitter function."""
self.assertEqual(
area4.splitter(3, "Hello", "world"),
"Hello\n............\nworld\n............\n",
)
def test_splitter_5(self):
"""Test splitter function."""
self.assertEqual(
area4.splitter("xyz", "Hello", "world"), "Hello\nxyzworld\nxyz"
)
def test_splitter_1(self):
"""Test splitter function."""
self.assertEqual(area4.splitter("---", "Hello"), "Hello")
def test_splitter_4(self):
"""Test splitter function."""
self.assertEqual(
area4.splitter(45, "Hello", "world", "fine"),
"Hello\neeeeeeeeeeee\nworld\neeeeeeeeeeee\nfine\neeeeeeeeeeee\n",
)