Beispiel #1
0
def test_reverse():
    assert "321" == sn.reverse("123")
Beispiel #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"))
Beispiel #5
0
def test_number_is_reversed():
    assert "321" == sn.reverse("123")
Beispiel #6
0
def test_string_is_reversed():
    assert "radar" == sn.reverse("radar")
Beispiel #7
0
def test_non_polyndrome():
    assert False == sn.is_polyndrome(123)