mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 10:02:47 +03:00
%ride test with failed scry
This commit is contained in:
parent
e58986fc73
commit
4ca22b988c
@ -24,6 +24,7 @@
|
||||
test-slim
|
||||
test-ride
|
||||
test-ride-scry-succeed
|
||||
test-ride-scry-fail
|
||||
test-ride-scry-block
|
||||
==
|
||||
++ test-is-schematic-live
|
||||
@ -618,6 +619,33 @@
|
||||
:- (~(nest ut &8:i.moves) | -:!>(*@))
|
||||
&
|
||||
::
|
||||
++ test-ride-scry-fail
|
||||
~& %test-ride-scry-fail
|
||||
::
|
||||
=/ scry-failed (scry-fail ~1234.5.6)
|
||||
=/ ford (ford-turbo now=~1234.5.6 eny=0xdead.beef scry=scry-failed)
|
||||
::
|
||||
=/ formula=hoon (ream '!: .^(* %cx /~nul/desk/~1234.5.6/foo/bar)')
|
||||
=/ subject-schematic=schematic:ford [%$ %noun !>(.)]
|
||||
::
|
||||
=^ moves ford
|
||||
%- call:ford
|
||||
:* duct=~[/dead] type=~ %make ~nul
|
||||
[%ride formula subject-schematic]
|
||||
==
|
||||
::
|
||||
?> =(1 (lent moves))
|
||||
?> ?=(^ moves)
|
||||
?> ?=([* %give %made @da %complete %error *] i.moves)
|
||||
::
|
||||
%- expect-eq !>
|
||||
:: compare the move to the expected move, omitting check on stack trace
|
||||
::
|
||||
:- i.moves(|7 ~)
|
||||
:* duct=~[/dead] %give %made ~1234.5.6 %complete
|
||||
[%error [leaf+"ford: %ride failed:" ~]]
|
||||
==
|
||||
::
|
||||
++ test-ride-scry-block
|
||||
~& %test-ride-scry-block
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user