Created
January 19, 2018 21:30
-
-
Save amirh/e387816a719d5b0aed351265089826d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test('move right', () { | |
BoardState state = new BoardState([ | |
[0, 2, 0, 0], | |
[0, 2, 0, 2], | |
[8, 0, 4, 4], | |
[2, 2, 0, 2], | |
]); | |
expect(state.moveRight().tiles, [ | |
[0, 0, 0, 2], | |
[0, 0, 0, 4], | |
[0, 0, 8, 8], | |
[0, 0, 2, 4], | |
]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment