Improve tests.
Chris Pressey
6 years ago
39 | 39 | The same rules apply to most other "words" appearing in a Samovar |
40 | 40 | description. |
41 | 41 | |
42 | scenario Pin_afore-1000 { | |
42 | scenario Pin_afore-isn't-1000 { | |
43 | 43 | this-is-a-constructor(this-is-an-atom). |
44 | 44 | } |
45 | 45 | |
225 | 225 | } |
226 | 226 | ===> "What a lovely brick this is!" says Ignatz, picking it up. |
227 | 227 | |
228 | scenario UntilHoldBrick { | |
229 | [actor(?A),item(?I),~holding(?A,?I)] "What a lovely ?I this is!" says ?A, picking it up. [holding(?A,?I)] | |
230 | actor(Ignatz). | |
231 | item(brick). | |
232 | goal [holding(Ignatz,brick)]. | |
233 | } | |
234 | ===> "What a lovely brick this is!" says Ignatz, picking it up. | |
235 | ||
228 | 236 | Punctuation should be preserved sensibly. |
229 | 237 | |
230 | 238 | scenario UntilHoldBrick { |
231 | 239 | [actor(α),item(β),~holding(α,β)] "β, don't you know?" says α, picking it up. [holding(α,β)] |
240 | actor(Ignatz). | |
241 | item(brick). | |
242 | goal [holding(Ignatz,brick)]. | |
243 | } | |
244 | ===> "brick, don't you know?" says Ignatz, picking it up. | |
245 | ||
246 | scenario UntilHoldBrick { | |
247 | [actor(?A),item(?I),~holding(?A,?I)] "?I, don't you know?" says ?A, picking it up. [holding(?A,?I)] | |
232 | 248 | actor(Ignatz). |
233 | 249 | item(brick). |
234 | 250 | goal [holding(Ignatz,brick)]. |