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
|
2018-03-19 21:23:04 +03:00
|
|
|
=/ 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 !>
|
2018-03-19 21:23:04 +03:00
|
|
|
:- 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
|
|
|
--
|