shrub/gen/ford-turbo.hoon

40 lines
770 B
Plaintext
Raw Normal View History

2018-03-16 03:21:46 +03:00
/+ ford-turbo, tester
::
:- %say
|= [[now=@da eny=@ =beak] ~ ~]
:- %noun
=+ our=p.beak
=+ tester:tester
|^
^- wall
;: weld
test-compiles
test-call
==
++ test-compiles
~& %test-compiles
%- expect-eq !>
[ford-turbo ford-turbo]
::
++ test-call
~& %test-call
=/ ford (ford-turbo now=~1234.5.6 eny=0xdead.beef scry=*sley)
=^ moves ford
%- call:ford
:* duct=~
type=~
%make
~nul
plan=[%$ %noun !>(**)]
date=`~1234.5.6
==
:: %+ welp
:: %- expect-eq !>
:: :- moves
:: [duct=~ %give %made now %complete %result %$ %noun !>(**)]~
::
2018-03-16 03:21:46 +03:00
%- expect-eq !>
:- state-by-ship.+>+<.ford
(~(gas by `(map ship ford-state:ford-turbo)`~) [~nul *ford-state:ford-turbo]~)
2018-03-16 03:21:46 +03:00
--