X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2Ftest%2Fsimpletests.lisp;h=7a362cd77d542a31343f1f9dc7bf537205e252a3;hb=5a7fb5c;hp=f4d6368f62097d7f3578a93be53319c220260d1e;hpb=9413d3737ae1c07d7ec2cad29ef3a6d50ab859a9;p=clnl diff --git a/src/test/simpletests.lisp b/src/test/simpletests.lisp index f4d6368..7a362cd 100644 --- a/src/test/simpletests.lisp +++ b/src/test/simpletests.lisp @@ -149,3 +149,62 @@ (defreportertestwithsetup "ticks 1" "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]" + "3F39BD2D8D5A1B2333E6C0DB665DBE3DCD5A75CE") + +(defreportertestwithsetup "set / pcolor" "ask patches [ set pcolor green ]" "[ pcolor ] of patches" + "[55 55 55 55 55 55 55 55 55]" + "3E246C518581E004BC65EFB074A09BA2EEBB2910") + +(defsimplereportertest "one-of 1" "one-of patches" "(patch -1 -1)" + "0BDACB8E9D2BB768C01826E993B47D83D39FBD0C") + +(defsimplereportertest "one-of 2" "one-of turtles" "nobody" + "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B") + +(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") + +(defsimplecommandtest "label 1" "crt 10 ask turtles [ set label who ]" + "96BF63544678A06E0D9A5062613CE1CAD638FCD5") + +(defsimplecommandtest "label-color 1" "crt 10 ask turtles [ set label-color green ]" + "70AB2BAA0BFD312256DDE6C02EE2B9C23E9B3532") + +(defsimplecommandtest "size 1" "crt 10 ask turtles [ set size 5 ]" + "8837CF2681A2091B0664FAA2C32062B19F548ED6") + +(defsimplereportertest "random 1" "random 100000" "85402" + "17D1BF7FF7BF2C7F3F5F7DD7CF67CFF2772CFFFC") + +(defreportertestwithsetup "random 2" "crt 10" "[ random 1000000 ] of turtles" + "[512564 490953 127774 976371 218233 692751 909837 655769 977588 485347]" + "2048ED1C553B0342D5DE1302577394CD09DE88DA") + +(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")