Esempio n. 1
0
def test_knows_which_tile_is_north():
    x, y = adjacent_tile('n', 1, 1)
    assert x == 1
    assert y == 2
Esempio n. 2
0
def test_knows_which_tile_is_west():
    x, y = adjacent_tile('w', 1, 1)
    assert x == 0
    assert y == 1
Esempio n. 3
0
def test_does_not_move_with_invalid_directions():
    x, y = adjacent_tile('pickle', 1, 1)
    assert x == 1
    assert y == 1
Esempio n. 4
0
def test_knows_which_tile_is_south():
    x, y = adjacent_tile('s', 1, 1)
    assert x == 1
    assert y == 0
Esempio n. 5
0
def test_knows_which_tile_is_east():
    x, y = adjacent_tile('e', 1, 1)
    assert x == 2
    assert y == 1
def test_knows_which_tile_is_north():
    x,y = adjacent_tile('n', 1, 1)
    assert x == 1
    assert y == 2
def test_does_not_move_with_invalid_directions():
    x,y = adjacent_tile('pickle', 1, 1)
    assert x == 1
    assert y == 1
def test_knows_which_tile_is_west():
    x,y = adjacent_tile('w', 1, 1)
    assert x == 0
    assert y == 1
def test_knows_which_tile_is_east():
    x,y = adjacent_tile('e', 1, 1)
    assert x == 2
    assert y == 1
def test_knows_which_tile_is_south():
    x,y = adjacent_tile('s', 1, 1)
    assert x == 1
    assert y == 0