roc icon indicating copy to clipboard operation
roc copied to clipboard

Add testframework/Test.roc

Open jxxcarlson opened this issue 3 years ago • 0 comments

This PR adds interface Test.roc:

# This interface provides a simple way to run tests.  A test is a record
# with two fields:
#
#     Test : { name : Str, test: Bool }
#
# for example,
#
#     t1 = {name : "1 + 1 == 2", test: 1 + 1 == 2}
#
# You run tests like this:
#
#     [t1,t2] |> Test.run "Test of potrezebie interface"  |> Task.putLine
#
# or 
#
#     [t1,t2] |> Test.runF "Test of potrezebie interface"  |> Task.putLine
#
# if you want to see failures only.
#

jxxcarlson avatar Aug 15 '21 13:08 jxxcarlson