1 (in-package #:clnl-test)
3 (defsimplecommandtest "Nothing" ""
4 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
6 (defsimplecommandtest "Simple crt" "crt 1"
7 "2F08B31AC06C9D5339E6B3E953C2B4B71FDB9CDE")
9 (defsimplecommandtest "Simple crt 2" "crt 5"
10 "9FE588C2749CD9CE66CB0EA451EFB80476E881FB")
12 (defsimplecommandtest "Simple crt and fd random" "crt 30 ask turtles [ fd random-float 1 ]"
13 "DED34D1D6492244E9E3813DE8DBF258F96636879")
15 (defsimplecommandtest "Simple crt and fd" "crt 5 ask turtles [ fd 1 ]"
16 "BEB43404EDC7852985A9A7FC312481785FE553A0")
18 (defsimplecommandtest "Wrapping 1" "crt 5 ask turtles [ fd 5 ]"
19 "1098A56973DA04E7AEA7659C40E3FF3EC7862B02")
21 (defsimplecommandtest "Wrapping 2" "crt 5 ask turtles [ fd random-float 5 ]"
22 "1419DFA66EFB7F08FB30C7B63B256547212EB915")
24 (defsimplecommandtest "Wrapping 3" "crt 10 ask turtles [ fd -5 ]"
25 "53E4ECBD3C49FC8D3466563641CFCD7DCB5CD2AF")
27 (defsimplecommandtest "Wrapping 4" "crt 10 ask turtles [ fd random-float -5 ]"
28 "1258CE9CC93B52367E797F4C497BF95760EC7175")
30 (defsimplereportertest "Random 1" "random-float 5" "4.244088516651127"
31 "17D1BF7FF7BF2C7F3F5F7DD7CF67CFF2772CFFFC")
33 (defsimplereportertest "= 1" "5 = 5" "true"
34 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
36 (defsimplereportertest "= 2" "5 = 4" "false"
37 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
39 (defsimplereportertest "!= 1" "5 != 5" "false"
40 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
42 (defsimplereportertest "!= 2" "5 != 4" "true"
43 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
45 (defsimplereportertest "- 1" "5 - 5" "0"
46 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
48 (defsimplereportertest "- 2" "5 - 6" "-1"
49 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
51 (defsimplereportertest "- 3" "random-float 5 - random-float 5" "3.349608870016444"
52 "811837B74F63D10ABBC01DD59C1E7556706D9F7A")
54 (defsimplereportertest "+ 1" "5 + 5" "10"
55 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
57 (defsimplereportertest "+ 2" "5 + -6" "-1"
58 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
60 (defsimplereportertest "+ 3" "random-float 6 + random-float 6" "6.166281795942972"
61 "811837B74F63D10ABBC01DD59C1E7556706D9F7A")
63 (defsimplereportertest "* 1" "5 * 5" "25"
64 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
66 (defsimplereportertest "* 2" "5 * -6" "-30"
67 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
69 (defsimplereportertest "* 3" "random-float 4 * random-float 7" "4.251800892259665"
70 "811837B74F63D10ABBC01DD59C1E7556706D9F7A")
72 (defsimplereportertest "/ 1" "5 / 5" "1"
73 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
75 (defsimplereportertest "/ 2" "5 / -6" "-0.8333333333333334"
76 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
78 (defsimplereportertest "/ 3" "random-float 4 / random-float 7" "2.7112896835726876"
79 "811837B74F63D10ABBC01DD59C1E7556706D9F7A")
81 (defsimplereportertest "< 1" "5 < 5" "false"
82 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
84 (defsimplereportertest "< 2" "5 < 6" "true"
85 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
87 (defsimplereportertest "< 3" "random-float 4 < random-float 7" "false"
88 "811837B74F63D10ABBC01DD59C1E7556706D9F7A")
90 (defsimplereportertest "<= 1" "5 <= 5" "true"
91 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
93 (defsimplereportertest "<= 2" "5 <= 6" "true"
94 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
96 (defsimplereportertest "<= 3" "random-float 4 <= random-float 7" "false"
97 "811837B74F63D10ABBC01DD59C1E7556706D9F7A")
99 (defsimplereportertest "any? 1" "any? turtles" "false"
100 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
102 (defreportertestwithsetup "any? 2" "crt 10" "any? turtles" "true"
103 "A925E39EC022967568D238D31F70F0A375024A89")
105 (defsimplecommandtest "die 1" "crt 10 ask turtles [ die ]"
106 "A665C1BF95E1F9CAAE9B9F8B2FBE3DAA45453136")
108 (defreportertestwithsetup "any? 3" "crt 10 ask turtles [ die ]" "any? turtles" "false"
109 "A665C1BF95E1F9CAAE9B9F8B2FBE3DAA45453136")
111 (defsimplecommandtest "rt 1" "crt 100 ask turtles [ fd random-float 5 rt random-float 180 fd random-float 4 ]"
112 "186B05DEFF6771BE791D54AB36A36874EC6E04FE")
114 (defsimplecommandtest "rt 2" "crt 100 ask turtles [ fd random-float 5 rt random-float 1080 fd random-float 4 ]"
115 "154C05DF7810C0FF5D7DDE51B76E1012FFB2C0E1")
117 (defsimplecommandtest "lt 1" "crt 100 ask turtles [ fd random-float 5 lt random-float 180 fd random-float 4 ]"
118 "D4B3844FE453C05E57537D6BA94C4B42C84655C6")
120 (defsimplecommandtest "lt 2" "crt 100 ask turtles [ fd random-float 5 lt random-float 1080 fd random-float 4 ]"
121 "07DEB6F4F007DB86CD8F2C2E10BD4E35CAD2B0CE")
123 (defsimplecommandtest "if 1" "if 5 = 5 [ crt 10 ]"
124 "A925E39EC022967568D238D31F70F0A375024A89")
126 (defsimplecommandtest "if 2" "if 5 = 4 [ crt 10 ]"
127 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
129 (defsimplecommandtest "ifelse 1" "ifelse 5 = 5 [ crt 10 ] [crt 5 ] if-else 5 = 5 [ crt 10 ] [ crt 5 ]"
130 "2CF70DC9135754E77B64422C10E947E776E731E6")
132 (defsimplecommandtest "ifelse 2" "ifelse 5 = 4 [ crt 10 ] [ crt 5 ] if-else 5 = 4 [ crt 10 ] [ crt 5 ]"
133 "A925E39EC022967568D238D31F70F0A375024A89")
135 (defsimplereportertest "colors 1" "green" "55"
136 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")
138 (defsimplereportertest "colors 2" "black" "0"
139 "E1DE30F072D785E0D0B59F28B0F7853E3D3E0D8B")