mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
test: add expect arm
This commit is contained in:
parent
26cfc748b6
commit
a14d73874a
@ -25,6 +25,11 @@
|
|||||||
(~(dunk ut p.expected) %expected)
|
(~(dunk ut p.expected) %expected)
|
||||||
== ==
|
== ==
|
||||||
result
|
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: kicks a trap, expecting crash. pretty-prints if succeeds
|
||||||
::
|
::
|
||||||
++ expect-fail
|
++ expect-fail
|
||||||
|
Loading…
Reference in New Issue
Block a user