Пример #1
0
def test_reverse():
    assert "321" == sn.reverse("123")
Пример #2
0
def test_polyndrome():
    assert True == sn.is_polyndrome(121)
 def test_polyndrome(self):
     self.assertEqual(True, sn.is_polyndrome(121))
 def test_reverse(self):
     self.assertEqual("321", sn.reverse("123"))
Пример #5
0
def test_number_is_reversed():
    assert "321" == sn.reverse("123")
Пример #6
0
def test_string_is_reversed():
    assert "radar" == sn.reverse("radar")
Пример #7
0
def test_non_polyndrome():
    assert False == sn.is_polyndrome(123)