X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2Ftest%2Fsimpletests.lisp;h=49631642fb7220e13a0daca9ee62b550a3e1f67d;hb=97c390f;hp=f4ac4f96234459ad7c5000ef9f35d46648bab35a;hpb=008caa39f337b16ba74df818ee374acb3540b09d;p=clnl diff --git a/src/test/simpletests.lisp b/src/test/simpletests.lisp index f4ac4f9..4963164 100644 --- a/src/test/simpletests.lisp +++ b/src/test/simpletests.lisp @@ -99,6 +99,12 @@ (defsimplereportertest "<= 3" "random-float 4 <= random-float 7" "false" "811837B74F63D10ABBC01DD59C1E7556706D9F7A") +(defsimplereportertest "precedence 1" "5 + 3 * 2 - 1 * count patches + 8" "10" + "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B") + +(defsimplereportertest "precedence 2" "(5 + 3) * 2 - 1 * count patches + 8" "15" + "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B") + (defsimplereportertest "any? 1" "any? turtles" "false" "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B") @@ -150,14 +156,14 @@ (defsimplecommandtest "let 1" "let a 5 crt a" "9FE588C2749CD9CE66CB0EA451EFB80476E881FB") -(defsimplecommandtest "let 2" "let a 5 let b 6 crt (a + b)" +(defsimplecommandtest "let 2" "let a 5 let b 6 crt a + b" "4ABB6822402929878AB9E5A1084B9E4AE1F01D5B") (defsimplecommandtest "ticks 1" "reset-ticks tick" - "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B") + "22A78AC53B666DE94611D566D814AD3EA7CC26AB") (defreportertestwithsetup "ticks 2" "reset-ticks tick tick" "ticks" "2" - "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B") + "296AE6F478D03264745B0331EC5CEF578C37CAB9") (defreportertestwithsetup "of / who 1" "crt 10" "[ who ] of turtles" "[5 9 4 3 7 0 1 2 6 8]" "3F39BD2D8D5A1B2333E6C0DB665DBE3DCD5A75CE") @@ -250,3 +256,12 @@ (defsimplereportertest "round 3" "round 2.5" "3" "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B") + +(defsimplecommandtest "clear-all 1" "crt 10 ask patches [ set pcolor random 100 ] clear-all" + "7B5DF28923D7FD72158018A876DE8ED02CFB0882") + +(defsimplecommandtest "stop 1" "crt 10 stop crt 10" + "A925E39EC022967568D238D31F70F0A375024A89") + +(defsimplecommandtest "stop 2" "crt 10 ask turtles [ fd 1 stop fd 1 ]" + "A6C980CC9843CDD211ABD9C13899010D555F3DC5")