summaryrefslogtreecommitdiff
path: root/examples/noc/test/random_walk.script
diff options
context:
space:
mode:
Diffstat (limited to 'examples/noc/test/random_walk.script')
-rw-r--r--examples/noc/test/random_walk.script7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/noc/test/random_walk.script b/examples/noc/test/random_walk.script
new file mode 100644
index 0000000..2bd1900
--- /dev/null
+++ b/examples/noc/test/random_walk.script
@@ -0,0 +1,7 @@
+# Ten seconds of walking (one step behind the frames: the first tick has
+# dt 0).
+frames 600
+expect clock.count 599
+expect walker.x 305
+expect walker.y 160
+screenshot .zig-cache/e2e/random_walk.png