X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2Ftest%2Fsimpletests.lisp;h=b68cc1ae13ef5bd8706929f688bad849aa4e2bbd;hb=1d54233;hp=43bed4601954c71f079be82585de54bf63dbaf44;hpb=0a00e056cd1a8f022128525ac3cf3494cc36159d;p=clnl diff --git a/src/test/simpletests.lisp b/src/test/simpletests.lisp index 43bed46..b68cc1a 100644 --- a/src/test/simpletests.lisp +++ b/src/test/simpletests.lisp @@ -166,6 +166,12 @@ (defreportertestwithsetup "one-of 3" "crt 10" "one-of turtles" "(turtle 5)" "A056ED8BF26A69FB4437E79F263E362C27F8820E") +(defreportertestwithsetup "one-of / of" "crt 10" "[ color ] of one-of turtles" "65" + "A056ED8BF26A69FB4437E79F263E362C27F8820E") + +(defsimplecommandtest "one-of / ask" "crt 10 ask one-of turtles [ fd 1 ]" + "40106C3853F3870AAE37F232353115968A3A02F6") + (defsimplecommandtest "color 1" "crt 10 ask turtles [ set color green ]" "20943094E2C70D5A12AC6EEB29E8E9E2D21BD87D") @@ -187,3 +193,12 @@ (defsimplecommandtest "setxy 1" "crt 10 ask turtles [ setxy random-xcor random-ycor ]" "B02FD5B864A129AED5254A68C499607F7F6EA236") + +(defsimplereportertest "count 1" "count turtles" "0" + "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B") + +(defreportertestwithsetup "count 2" "crt 10" "count turtles" "10" + "A925E39EC022967568D238D31F70F0A375024A89") + +(defsimplereportertest "count 3" "count patches" "9" + "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")