Skip to content

jsanchesleao/elm-assert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assert

Tiny x-unit like testing library.

import Assert exposing (report, suite, test)

main =
  report "My App" 
    [ suite "Testing Strings" 
      [ test "values are equal" "ok" "ok"
      , test "values are not equal" "bla" "ble"
      , test "records" {a = 1} {a = 1}
      , test "records failing" {a = 1} {a = 2}
      ]
    ]

This will generate a report HTML like the following:

Assert Report

About

Small assertion library in Elm

Resources

Stars

Watchers

Forks

Packages

No packages published