mirror of
https://github.com/urbit/shrub.git
synced 2024-11-24 13:06:09 +03:00
test: add expect arm
This commit is contained in:
parent
26cfc748b6
commit
a14d73874a
@ -25,6 +25,11 @@
|
||||
(~(dunk ut p.expected) %expected)
|
||||
== ==
|
||||
result
|
||||
:: +expect: compares :actual to %.y and pretty-prints anything else
|
||||
::
|
||||
++ expect
|
||||
|= actual=vase
|
||||
(expect-eq !>(%.y) actual)
|
||||
:: +expect-fail: kicks a trap, expecting crash. pretty-prints if succeeds
|
||||
::
|
||||
++ expect-fail
|
||||
|
Loading…
Reference in New Issue
Block a user