diff options
Diffstat (limited to 'examples/noc/test/wolfram_ca.script')
| -rw-r--r-- | examples/noc/test/wolfram_ca.script | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/noc/test/wolfram_ca.script b/examples/noc/test/wolfram_ca.script new file mode 100644 index 0000000..da7f408 --- /dev/null +++ b/examples/noc/test/wolfram_ca.script @@ -0,0 +1,12 @@ +# One generation a step until the canvas is full, then it stops (noLoop). +# The first tick carries dt 0, so 10 frames are 9 steps. +frames 10 +expect generation 9 +# Rule 90 from one cell: row 2 is cells 30 and 34, row 3 is 29, 31, 33, 35. +expect rows[2][30] 1 +expect rows[2][32] 0 +expect rows[3][31] 1 +await generation 33 +frames 30 +expect generation 33 +screenshot .zig-cache/e2e/wolfram_ca.png |
