TestCard.elm 634 B

12345678910111213141516171819202122
  1. module TestCard exposing (..)
  2. import Card exposing (ManaCost(..))
  3. import Expect exposing (Expectation)
  4. import Fuzz exposing (Fuzzer, int, list, string)
  5. import Signals
  6. import Test exposing (..)
  7. suite : Test
  8. suite =
  9. describe "Card"
  10. [ test "parseManaCost ('')" <|
  11. \_ ->
  12. Expect.equal (Card.parseManaCost "") (Just [])
  13. , test "parseManaCost ('{X}')" <|
  14. \_ ->
  15. Expect.equal (Card.parseManaCost "{X}") (Just [ X ])
  16. , test "parseManaCost ('{X}{Y}')" <|
  17. \_ ->
  18. Expect.equal (Card.parseManaCost "{X}{Y}") (Just [ X, Y ])
  19. ]