X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2Ftest%2Fsimpletests.lisp;h=96ce890ef55128de24664bd6ea60747a525a1ab0;hb=083d6c212147c2242f0513924e931bcdafd641c9;hp=43bed4601954c71f079be82585de54bf63dbaf44;hpb=0a00e056cd1a8f022128525ac3cf3494cc36159d;p=clnl diff --git a/src/test/simpletests.lisp b/src/test/simpletests.lisp index 43bed46..96ce890 100644 --- a/src/test/simpletests.lisp +++ b/src/test/simpletests.lisp @@ -15,6 +15,9 @@ (defsimplecommandtest "Simple crt and fd" "crt 5 ask turtles [ fd 1 ]" "BEB43404EDC7852985A9A7FC312481785FE553A0") +(defsimplecommandtest "Simple crt and fd 2" "crt 5 [ fd 1 ]" + "BEB43404EDC7852985A9A7FC312481785FE553A0") + (defsimplecommandtest "Wrapping 1" "crt 5 ask turtles [ fd 5 ]" "1098A56973DA04E7AEA7659C40E3FF3EC7862B02") @@ -147,7 +150,7 @@ (defsimplecommandtest "ticks 1" "reset-ticks tick" "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B") -(defreportertestwithsetup "ticks 1" "reset-ticks tick tick" "ticks" "2" +(defreportertestwithsetup "ticks 2" "reset-ticks tick tick" "ticks" "2" "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B") (defreportertestwithsetup "of / who 1" "crt 10" "[ who ] of turtles" "[5 9 4 3 7 0 1 2 6 8]" @@ -166,6 +169,18 @@ (defreportertestwithsetup "one-of 3" "crt 10" "one-of turtles" "(turtle 5)" "A056ED8BF26A69FB4437E79F263E362C27F8820E") +(defsimplereportertest "one-of 4" "one-of [green brown]" "35" + "0BDACB8E9D2BB768C01826E993B47D83D39FBD0C") + +(defsimplecommandtest "one-of 5" "crt 50 ask turtles [ set color one-of [green brown blue] ]" + "FD6AC9D531591C47FCE4E4AA0C4FA11CB7A06199") + +(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 +202,26 @@ (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") + +(defreportertestwithsetup "with 1" + "crt 10 [ set color blue ] crt 10 [ set color green ]" "turtles with [ color = blue ]" + "(agentset, 10 turtles)" + "3FA51464CBF2AD493FA95A52E17768E1D8C8EFBB") + +(defreportertestwithsetup "with 2" + "crt 10 [ set color blue ] crt 10 [ set color green ]" "turtles with [ color = black ]" + "(agentset, 0 turtles)" + "3FA51464CBF2AD493FA95A52E17768E1D8C8EFBB") + +(defsimplereportertest "with 3" "patches with [ pcolor = green ]" + "(agentset, 0 patches)" + "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")