moduleBlackJackTestexposing(suite)importExpectexposing(Expectation,equal)importTestexposing(Test,describe,test)importBlackJackexposing(score)suite:Testsuite=describe"BlackJack.elm"[describe"score"[test"It should return 11"<|\_->equal11<|score["A"],test"It should return 25"<|\_->equal25<|score["5","4","3","2","A","K"],test"It should return 21"<|\_->equal21<|score["A","J"],test"It should return 22"<|\_->equal22<|score["A","10","A"],test"It should return 15"<|\_->equal15<|score["5","3","7"]]]
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Elm
From what I understood about the game, the cards are revealed at each draw. I may have implemented a wrong version though.
Tests