Tests.elm 549 B

1234567891011121314151617181920212223
  1. module Tests exposing (..)
  2. import Test exposing (..)
  3. import Expect
  4. -- Check out http://package.elm-lang.org/packages/elm-community/elm-test/latest to learn more about testing in Elm!
  5. all : Test
  6. all =
  7. describe "A Test Suite"
  8. [ test "Addition" <|
  9. \_ ->
  10. Expect.equal 10 (3 + 7)
  11. , test "String.left" <|
  12. \_ ->
  13. Expect.equal "a" (String.left 1 "abcdefg")
  14. , test "This test should fail" <|
  15. \_ ->
  16. Expect.fail "failed as expected!"
  17. ]