Created
April 7, 2020 18:27
-
-
Save amw-zero/6ef9edab1b618f0b1745783aba40d90d 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
let testLegalityOfFiveOfSpadesAndSixOfClubs = () => { | |
let fiveOfSpades = {suit: Spades, rank: 5}; | |
let sixOfClubs = {suit: Clubs, rank: 6}; | |
let isFiveToSixLegal = | |
isLegalMove(~source=fiveOfSpades, ~dest=sixOfClubs); | |
[ | |
Bool.assertEqual( | |
~expected=false, | |
~actual=isFiveToSixLegal, | |
"Moving the five of spades onto the six of clubs is not a legal move", | |
), | |
]; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment