Пример #1
0
    def test_onlyops(self):
        data = "+ -"

        result = solution(data)
        self.assertEqual(-1, result)
Пример #2
0
    def test_big_number(self):

        data = "1048576 DUP + DUP +"

        result = solution(data)
        self.assertEqual(-1, result)
Пример #3
0
    def test_navie_err(self):
        data = "5 6 + -"

        result = solution(data)
        self.assertEqual(-1, result)
Пример #4
0
    def test_navie(self):
        data = "13 DUP 4 POP 5 DUP + DUP + -"

        result = solution(data)
        self.assertEqual(7, result)
Пример #5
0
    def test_none(self):
        data = " "

        result = solution(data)
        self.assertEqual(-1, result)
Пример #6
0
    def test_single_number(self):
        data = "13"

        result = solution(data)
        self.assertEqual(13, result)