from board import Direction

# Tuples of input, action, expected output.
moving_tests = [
    (
        [[0,0,0,0],
         [4,0,0,0],
         [0,0,0,0],
         [4,0,2,0]],
         Direction.UP,
        [[8,0,2,0],
         [0,0,0,0],
         [0,0,0,0],
         [0,0,0,0]]
    ),
    (
        [[0,0,0,0],
         [4,0,0,0],
         [0,0,0,0],
         [4,0,2,0]],
         Direction.DOWN,
        [[0,0,0,0],
         [0,0,0,0],
         [0,0,0,0],
         [8,0,2,0]]
    ),
    (
        [[0,0,0,0],
         [4,0,0,0],
         [0,0,0,0],
         [4,0,2,0]],
         Direction.LEFT,
        [[0,0,0,0],
         [4,0,0,0],
         [0,0,0,0],
         [4,2,0,0]]
    ),
        (
        [[0,0,0,0],
         [4,0,0,0],
         [0,0,0,0],
         [4,0,2,0]],
         Direction.RIGHT,
        [[0,0,0,0],
         [0,0,0,4],
         [0,0,0,0],
         [0,0,4,2]]
    ),
        (
        [[4,4,4,4],
         [8,0,8,4],
         [32,16,0,16],
         [16,8,2,4]],
         Direction.RIGHT,
        [[0,0,8,8],
         [0,0,16,4],
         [0,0,32,32],
         [16,8,2,4]]
    ),
        (
        [[4,4,4,4],
         [8,0,8,4],
         [32,16,0,16],
         [16,8,2,4]],
         Direction.LEFT,
        [[8,8,0,0],
         [16,4,0,0],
         [32,32,0,0],
         [16,8,2,4]]
    ),
        (
        [[4,4,4,4],
         [8,0,8,4],
         [32,16,0,16],
         [16,8,2,4]],
         Direction.UP,
        [[4,4,4,8],
         [8,16,8,16],
         [32,8,2,4],
         [16,0,0,0]]
    ),
        (
        [[4,4,4,4],
         [8,0,8,4],
         [32,16,0,16],
         [16,8,2,4]],
         Direction.DOWN,
        [[4,0,0,0],
         [8,4,4,8],
         [32,16,8,16],
         [16,8,2,4]]
    )
]
[]