from magic_string import magic_string
import unittest


class MagicStringTest(unittest.TestCase):
    """Testing magic_string - 250 problem from TC SRM 609 Div 2"""
    def test_problem_statement_cases(self):
        self.assertEqual(2, magic_string(">><<><"))
        self.assertEqual(0, magic_string(">>>><<<<"))
        self.assertEqual(4, magic_string("<<>>"))
        self.assertEqual(20,
                         magic_string(
                         "<><<<>>>>><<>>>>><>><<<>><><><><<><<<<<><<>>><><><"))

if __name__ == '__main__':
    unittest.main()
6eecdcfb33ea781a14025184c0fd9bb86c6e5cdf
<mask token>


class MagicStringTest(unittest.TestCase):
    <mask token>

    def test_problem_statement_cases(self):
        self.assertEqual(2, magic_string('>><<><'))
        self.assertEqual(0, magic_string('>>>><<<<'))
        self.assertEqual(4, magic_string('<<>>'))
        self.assertEqual(20, magic_string(
            '<><<<>>>>><<>>>>><>><<<>><><><><<><<<<<><<>>><><><'))


<mask token>

<mask token>


class MagicStringTest(unittest.TestCase):
    """Testing magic_string - 250 problem from TC SRM 609 Div 2"""

    def test_problem_statement_cases(self):
        self.assertEqual(2, magic_string('>><<><'))
        self.assertEqual(0, magic_string('>>>><<<<'))
        self.assertEqual(4, magic_string('<<>>'))
        self.assertEqual(20, magic_string(
            '<><<<>>>>><<>>>>><>><<<>><><><><<><<<<<><<>>><><><'))


<mask token>

<mask token>


class MagicStringTest(unittest.TestCase):
    """Testing magic_string - 250 problem from TC SRM 609 Div 2"""

    def test_problem_statement_cases(self):
        self.assertEqual(2, magic_string('>><<><'))
        self.assertEqual(0, magic_string('>>>><<<<'))
        self.assertEqual(4, magic_string('<<>>'))
        self.assertEqual(20, magic_string(
            '<><<<>>>>><<>>>>><>><<<>><><><><<><<<<<><<>>><><><'))


if __name__ == '__main__':
    unittest.main()

from magic_string import magic_string
import unittest


class MagicStringTest(unittest.TestCase):
    """Testing magic_string - 250 problem from TC SRM 609 Div 2"""

    def test_problem_statement_cases(self):
        self.assertEqual(2, magic_string('>><<><'))
        self.assertEqual(0, magic_string('>>>><<<<'))
        self.assertEqual(4, magic_string('<<>>'))
        self.assertEqual(20, magic_string(
            '<><<<>>>>><<>>>>><>><<<>><><><><<><<<<<><<>>><><><'))


if __name__ == '__main__':
    unittest.main()

from magic_string import magic_string
import unittest


class MagicStringTest(unittest.TestCase):
    """Testing magic_string - 250 problem from TC SRM 609 Div 2"""
    def test_problem_statement_cases(self):
        self.assertEqual(2, magic_string(">><<><"))
        self.assertEqual(0, magic_string(">>>><<<<"))
        self.assertEqual(4, magic_string("<<>>"))
        self.assertEqual(20,
                         magic_string(
                         "<><<<>>>>><<>>>>><>><<<>><><><><<><<<<<><<>>><><><"))

if __name__ == '__main__':
    unittest.main()