How to use the area4.splitter function in area4

To help you get started, we’ve selected a few area4 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github area4lib / area4 / tests.py View on Github external
def test_splitter_2(self):
        """Test splitter function."""
        self.assertEqual(
            area4.splitter("---", "Hello", "world"), "Hello\n---world\n---"
        )
github area4lib / area4 / tests.py View on Github external
def test_splitter_3(self):
        """Test splitter function."""
        self.assertEqual(
            area4.splitter(3, "Hello", "world"),
            "Hello\n............\nworld\n............\n",
        )
github area4lib / area4 / tests.py View on Github external
def test_splitter_5(self):
        """Test splitter function."""
        self.assertEqual(
            area4.splitter("xyz", "Hello", "world"), "Hello\nxyzworld\nxyz"
        )
github area4lib / area4 / tests.py View on Github external
def test_splitter_1(self):
        """Test splitter function."""
        self.assertEqual(area4.splitter("---", "Hello"), "Hello")
github area4lib / area4 / tests.py View on Github external
def test_splitter_4(self):
        """Test splitter function."""
        self.assertEqual(
            area4.splitter(45, "Hello", "world", "fine"),
            "Hello\neeeeeeeeeeee\nworld\neeeeeeeeeeee\nfine\neeeeeeeeeeee\n",
        )