Ejemplo n.º 1
0
def test_rot13_char():

    assert_equal("o", rot13_char("b"))
def test_rot13_char():
  assert_equal('n', rot13_char("a"))
Ejemplo n.º 3
0
def test_rot13_char_a():
    assert "n" == rot13_char("a"), "Unexpected character"
Ejemplo n.º 4
0
def test_rot13_char_a():
    assert_equal('n', rot13_char('a'))
Ejemplo n.º 5
0
def test_rot13_char_4():
    assert_equal('4', rot13_char('4'))
Ejemplo n.º 6
0
def test_rot13_char_hello():
    try:
        assert_equal('uryyb', rot13_char('hello'))
    except TypeError:
        print('rot13_char receives characters, not strings.')
Ejemplo n.º 7
0
def test_rot13_char_A():
    assert_equal('N', rot13_char('A'))
def test_rot13_not_char():
    assert "2" == rot13_char("2"), "Should awnser 2"
Ejemplo n.º 9
0
def test_rot13_char_a():
    assert_equal("n", rot13_char("a"))
Ejemplo n.º 10
0
def test_rot13_char():
    assert_equal("n", rot13_char("a"))
    assert_equal("-", rot13_char("-"))
    assert_equal("a", rot13_char("n"))
Ejemplo n.º 11
0
def test_rot13_char_non_alpha():
    assert '#' == rot13_char('#')
def test_rot13_char_a():
    assert "Z" == rot13_char("M"), "Unexpected character"
    assert "5" == rot13_char("5"), "Unexpected Non Alpha"
    assert "" == rot13_char(""), "Unexpected Not Null"
    assert "~" == rot13_char("~"), "Unexpected character"
def test_rot13():
    assert len("12no889ert") == len(
        rot13_char("12no889ert")), "Unexpected string length"
    assert " xz " == rot13_char(" xz "), "Expected string with spaces"
def test_rot13_char_a():
    assert_equal("Y", rot13_char("L"))
Ejemplo n.º 15
0
def test_rot13_char_z():
    assert "m" == rot13_char("z"), "Unexpected character"
Ejemplo n.º 16
0
def test_rot13_char_alpha():
    assert "a123" == rot13_char("a123"), "Unexpected character"