コード例 #1
0
def test_correct_exit_2_3():
    # to test in case of correct exit
    assert engine.if_exit(
        "2",
        "E") == ('You are standing in the balcony attached to the hallway.',
                 '5')
コード例 #2
0
def test_correct_exit_2_1():
    # to test in case of correct exit
    assert engine.if_exit("2", "S") == (
        'You are standing in a connecting hallway. Three doors await you.',
        '6')
コード例 #3
0
def test_correct_exit_2_2():
    # to test in case of correct exit
    assert engine.if_exit("2", "N") == (
        'Your are standing in what seems to be a bedroom. It has got a balcony attached.',
        '3')
コード例 #4
0
def test_correct_exit_1_3():
    # to test in case of correct exit
    assert engine.if_exit("1", "E") == (
        'You are standing in what seems to be a hall way connecting many room.',
        '2')
コード例 #5
0
def test_correct_exit_1_4():
    # to test in case of correct exit
    assert engine.if_exit("1", "N") == (
        "You are standing at the end of a corridor. There is a door in front of you.",
        '0')
コード例 #6
0
def test_correct_exit_0_4():
    # to test in case of correct exit
    assert engine.if_exit(
        "0",
        "S") == ("You are standing in what seems to be a living room.", '1')
コード例 #7
0
def test_wrong_exit_1_2():
    # to test the output in case of no exit
    assert engine.if_exit("1", "S") == ("No exit that way", "1")
コード例 #8
0
def test_correct_exit_11_4():
    # to test in case of correct exit
    assert engine.if_exit("11", "N") == (
        'You are standing in another bedroom. You can see a door that seems to lead to a balcony number 3.',
        '9')
コード例 #9
0
def test_wrong_exit_0_3():
    # to test the output in case of no exit
    assert engine.if_exit("0", "W") == ("No exit that way", "0")
コード例 #10
0
def test_wrong_exit_9_1():
    # to test the output in case of no exit
    assert engine.if_exit("9", "E") == ("No exit that way", "9")
コード例 #11
0
def test_correct_exit_9_4():
    # to test in case of correct exit
    assert engine.if_exit(
        "9",
        "S") == ('You are standing in the balcony of room number 9.', '11')
コード例 #12
0
def test_correct_exit_8_3():
    # to test in case of correct exit
    assert engine.if_exit(
        "8",
        "S") == ('You are standing in the balcony of room number 8.', '10')
コード例 #13
0
def test_wrong_exit_8_1():
    # to test the output in case of no exit
    assert engine.if_exit("8", "N") == ("No exit that way", "8")
コード例 #14
0
def test_correct_exit_6_3():
    # to test in case of correct exit
    assert engine.if_exit(
        "6",
        "E") == ('You are standing in a kitchen. Utensils everywhere.', '7')
コード例 #15
0
def test_correct_exit_3_4():
    # to test in case of correct exit
    assert engine.if_exit(
        "3", "E") == ('You are standing in the balcony of Room number 3.', '4')
コード例 #16
0
def test_correct_exit_2_4():
    # to test in case of correct exit
    assert engine.if_exit(
        "2",
        "W") == ('You are standing in what seems to be a living room.', '1')