Skip to content

Test

Given a file named “pen.json” with:

{
"type": "library",
"dependencies": {
"Test": "pen:///test"
}
}

Given a file named “foo.test.pen” with:

import Test'Assert
Foo = \() none | error {
Assert'True(true)
}

When I run pen test

Then the exit status should be 0.

Given a file named “foo.test.pen” with:

import Test'Assert
Foo = \() none | error {
Assert'Error(error(none))
}

When I run pen test

Then the exit status should be 0.

Given a file named “foo.test.pen” with:

import Test'Assert
Foo = \() none | error {
Assert'Fail()
}

When I run pen test

Then the exit status should be 1.