summaryrefslogtreecommitdiff
path: root/anim/test
diff options
context:
space:
mode:
Diffstat (limited to 'anim/test')
-rw-r--r--anim/test/asan.script8
-rw-r--r--anim/test/column.script8
-rw-r--r--anim/test/column_sort.script8
-rw-r--r--anim/test/fib.script8
-rw-r--r--anim/test/gallery.script20
-rw-r--r--anim/test/heap.script8
-rw-r--r--anim/test/intro.script10
-rw-r--r--anim/test/list.script8
-rw-r--r--anim/test/musl.script8
-rw-r--r--anim/test/recordings.zig4
-rw-r--r--anim/test/sort.script8
-rw-r--r--anim/test/sqlite.script8
-rw-r--r--anim/test/syscalls.script8
-rw-r--r--anim/test/title.script4
-rw-r--r--anim/test/zoom.script8
15 files changed, 63 insertions, 63 deletions
diff --git a/anim/test/asan.script b/anim/test/asan.script
index db1dc2c..0d9149b 100644
--- a/anim/test/asan.script
+++ b/anim/test/asan.script
@@ -1,10 +1,10 @@
# The ASan pair, headless: it runs to three instants of its timeline without failing
# (the two runs together, plain alone with ASan stopped on its report, the close).
frames 2
-console set playing false
-console set t 20
+console set deck.playing false
+console set deck.t 20
screenshot .zig-cache/canim/asan-early.png
-console set t 70
+console set deck.t 70
screenshot .zig-cache/canim/asan-mid.png
-console set t 999
+console set deck.t 999
screenshot .zig-cache/canim/asan-end.png
diff --git a/anim/test/column.script b/anim/test/column.script
index 4a308d1..84655a7 100644
--- a/anim/test/column.script
+++ b/anim/test/column.script
@@ -1,10 +1,10 @@
# The column trial, headless: it runs to three instants of its timeline without failing
# (the opening in the working frame, a beat in the column, the close).
frames 2
-console set playing false
-console set t 5
+console set deck.playing false
+console set deck.t 5
screenshot .zig-cache/canim/column-early.png
-console set t 30
+console set deck.t 30
screenshot .zig-cache/canim/column-mid.png
-console set t 999
+console set deck.t 999
screenshot .zig-cache/canim/column-end.png
diff --git a/anim/test/column_sort.script b/anim/test/column_sort.script
index 540658b..1035305 100644
--- a/anim/test/column_sort.script
+++ b/anim/test/column_sort.script
@@ -1,10 +1,10 @@
# The column on sort's rings, headless: it runs to three instants of its timeline without failing
# (the opening in the working frame, the drawing across both columns, the close).
frames 2
-console set playing false
-console set t 5
+console set deck.playing false
+console set deck.t 5
screenshot .zig-cache/canim/column_sort-early.png
-console set t 20
+console set deck.t 20
screenshot .zig-cache/canim/column_sort-mid.png
-console set t 999
+console set deck.t 999
screenshot .zig-cache/canim/column_sort-end.png
diff --git a/anim/test/fib.script b/anim/test/fib.script
index a300d19..52000a5 100644
--- a/anim/test/fib.script
+++ b/anim/test/fib.script
@@ -2,10 +2,10 @@
# (The pixel assertions written for the first layout were dropped when the
# frame became the debugger's context; new ones want a settled design: see anim/README.md.)
frames 2
-console set playing false
-console set t 5
+console set deck.playing false
+console set deck.t 5
screenshot .zig-cache/canim/fib-early.png
-console set t 14
+console set deck.t 14
screenshot .zig-cache/canim/fib-mid.png
-console set t 999
+console set deck.t 999
screenshot .zig-cache/canim/fib-end.png
diff --git a/anim/test/gallery.script b/anim/test/gallery.script
index 461f100..43f1d6e 100644
--- a/anim/test/gallery.script
+++ b/anim/test/gallery.script
@@ -2,40 +2,40 @@
# every channel of every pixel within 24 of the picture, above the player's own line
# (its timings change from run to run). A screenshot is saved on the frame after.
frames 2
-console set playing false
-console set t 1.5
+console set deck.playing false
+console set deck.t 1.5
screenshot {dir}/atoms.png
frames 1
expect-same-screenshot {dir}/atoms.png test/gallery/atoms.png 24 0 0 1920 1040
-console set t 4.5
+console set deck.t 4.5
screenshot {dir}/rows.png
frames 1
expect-same-screenshot {dir}/rows.png test/gallery/rows.png 24 0 0 1920 1040
-console set t 7.4
+console set deck.t 7.4
screenshot {dir}/rest.png
frames 1
expect-same-screenshot {dir}/rest.png test/gallery/rest.png 24 0 0 1920 1040
-console set t 9.6
+console set deck.t 9.6
screenshot {dir}/step.png
frames 1
expect-same-screenshot {dir}/step.png test/gallery/step.png 24 0 0 1920 1040
-console set t 13.4
+console set deck.t 13.4
screenshot {dir}/subject.png
frames 1
expect-same-screenshot {dir}/subject.png test/gallery/subject.png 24 0 0 1920 1040
-console set t 16.4
+console set deck.t 16.4
screenshot {dir}/none.png
frames 1
expect-same-screenshot {dir}/none.png test/gallery/none.png 24 0 0 1920 1040
-console set t 19.8
+console set deck.t 19.8
screenshot {dir}/loupe.png
frames 1
expect-same-screenshot {dir}/loupe.png test/gallery/loupe.png 24 0 0 1920 1040
-console set t 21.8
+console set deck.t 21.8
screenshot {dir}/graph.png
frames 1
expect-same-screenshot {dir}/graph.png test/gallery/graph.png 24 0 0 1920 1040
-console set t 25.5
+console set deck.t 25.5
screenshot {dir}/graph-map.png
frames 1
expect-same-screenshot {dir}/graph-map.png test/gallery/graph-map.png 24 0 0 1920 1040
diff --git a/anim/test/heap.script b/anim/test/heap.script
index 9c7e375..d635888 100644
--- a/anim/test/heap.script
+++ b/anim/test/heap.script
@@ -2,10 +2,10 @@
# (The pixel assertions written for the first layout were dropped when the
# frame became the debugger's context; new ones want a settled design: see anim/README.md.)
frames 2
-console set playing false
-console set t 5
+console set deck.playing false
+console set deck.t 5
screenshot .zig-cache/canim/heap-early.png
-console set t 14
+console set deck.t 14
screenshot .zig-cache/canim/heap-mid.png
-console set t 999
+console set deck.t 999
screenshot .zig-cache/canim/heap-end.png
diff --git a/anim/test/intro.script b/anim/test/intro.script
index 4b0a0f7..3ccc278 100644
--- a/anim/test/intro.script
+++ b/anim/test/intro.script
@@ -2,12 +2,12 @@
# timeline without failing (I's bytes regrouping, II's rdi opened into its
# parts, III's push, IV's map at the close).
frames 2
-console set playing false
-console set t 14
+console set deck.playing false
+console set deck.t 14
screenshot .zig-cache/canim/intro-memory.png
-console set t 99
+console set deck.t 99
screenshot .zig-cache/canim/intro-registers.png
-console set t 143
+console set deck.t 143
screenshot .zig-cache/canim/intro-stack.png
-console set t 999
+console set deck.t 999
screenshot .zig-cache/canim/intro-end.png
diff --git a/anim/test/list.script b/anim/test/list.script
index 7f4bcbb..4278e96 100644
--- a/anim/test/list.script
+++ b/anim/test/list.script
@@ -2,10 +2,10 @@
# (The pixel assertions written for the first layout were dropped when the
# frame became the debugger's context; new ones want a settled design: see anim/README.md.)
frames 2
-console set playing false
-console set t 5
+console set deck.playing false
+console set deck.t 5
screenshot .zig-cache/canim/list-early.png
-console set t 14
+console set deck.t 14
screenshot .zig-cache/canim/list-mid.png
-console set t 999
+console set deck.t 999
screenshot .zig-cache/canim/list-end.png
diff --git a/anim/test/musl.script b/anim/test/musl.script
index 742770b..7caaa42 100644
--- a/anim/test/musl.script
+++ b/anim/test/musl.script
@@ -1,9 +1,9 @@
# The musl scene, headless: it runs to three instants of its timeline without failing.
frames 2
-console set playing false
-console set t 5
+console set deck.playing false
+console set deck.t 5
screenshot .zig-cache/canim/musl-early.png
-console set t 14
+console set deck.t 14
screenshot .zig-cache/canim/musl-mid.png
-console set t 999
+console set deck.t 999
screenshot .zig-cache/canim/musl-end.png
diff --git a/anim/test/recordings.zig b/anim/test/recordings.zig
index dea5b65..df3508e 100644
--- a/anim/test/recordings.zig
+++ b/anim/test/recordings.zig
@@ -88,7 +88,7 @@ test "a walked step is as long as what it changed: fire, a slot a level, the hol
};
var arena: std.heap.ArenaAllocator = .init(std.testing.allocator);
defer arena.deinit();
- var frame: anim.Frame = .{ .t = 0, .clock = 0, .in = undefined, .pointer = .{ 0, 0 }, .arena = arena.allocator() };
+ var frame: anim.Frame = .{ .t = 0, .in = undefined, .pointer = .{ 0, 0 }, .arena = arena.allocator() };
scene.frame(&frame);
const t = canim.theme.time;
// main's line calls fib(5): its two registers (rdi, rsp) 6 f apart,
@@ -118,7 +118,7 @@ test "under tied a step goes cause to effect: the touch, the word, rsp's pin, th
};
var arena: std.heap.ArenaAllocator = .init(std.testing.allocator);
defer arena.deinit();
- var frame: anim.Frame = .{ .t = 0, .clock = 0, .in = undefined, .pointer = .{ 0, 0 }, .arena = arena.allocator() };
+ var frame: anim.Frame = .{ .t = 0, .in = undefined, .pointer = .{ 0, 0 }, .arena = arena.allocator() };
scene.frame(&frame);
const f = 1.0 / 60.0;
// fib(5)'s `call fib` (by instruction): the touch to the free word over rsp 18 to 30, the return
diff --git a/anim/test/sort.script b/anim/test/sort.script
index 4823051..c02af8c 100644
--- a/anim/test/sort.script
+++ b/anim/test/sort.script
@@ -2,10 +2,10 @@
# (The pixel assertions written for the first layout were dropped when the
# frame became the debugger's context; new ones want a settled design: see anim/README.md.)
frames 2
-console set playing false
-console set t 5
+console set deck.playing false
+console set deck.t 5
screenshot .zig-cache/canim/sort-early.png
-console set t 14
+console set deck.t 14
screenshot .zig-cache/canim/sort-mid.png
-console set t 999
+console set deck.t 999
screenshot .zig-cache/canim/sort-end.png
diff --git a/anim/test/sqlite.script b/anim/test/sqlite.script
index 663caf5..cf875d7 100644
--- a/anim/test/sqlite.script
+++ b/anim/test/sqlite.script
@@ -1,10 +1,10 @@
# The sqlite scene, headless: it runs to three instants of its timeline without failing
# (the opening stop, the crossing, the page read). Built only where SQLite's source is.
frames 2
-console set playing false
-console set t 5
+console set deck.playing false
+console set deck.t 5
screenshot .zig-cache/canim/sqlite-early.png
-console set t 44
+console set deck.t 44
screenshot .zig-cache/canim/sqlite-mid.png
-console set t 999
+console set deck.t 999
screenshot .zig-cache/canim/sqlite-end.png
diff --git a/anim/test/syscalls.script b/anim/test/syscalls.script
index cb9d2f4..fd53680 100644
--- a/anim/test/syscalls.script
+++ b/anim/test/syscalls.script
@@ -2,10 +2,10 @@
# (The pixel assertions written for the first layout were dropped when the
# frame became the debugger's context; new ones want a settled design: see anim/README.md.)
frames 2
-console set playing false
-console set t 5
+console set deck.playing false
+console set deck.t 5
screenshot .zig-cache/canim/syscalls-early.png
-console set t 14
+console set deck.t 14
screenshot .zig-cache/canim/syscalls-mid.png
-console set t 999
+console set deck.t 999
screenshot .zig-cache/canim/syscalls-end.png
diff --git a/anim/test/title.script b/anim/test/title.script
index 9207ea6..950b722 100644
--- a/anim/test/title.script
+++ b/anim/test/title.script
@@ -1,4 +1,4 @@
frames 2
-console set playing false
-console set t 999
+console set deck.playing false
+console set deck.t 999
screenshot .zig-cache/canim/title-end.png
diff --git a/anim/test/zoom.script b/anim/test/zoom.script
index d508bb0..551fe00 100644
--- a/anim/test/zoom.script
+++ b/anim/test/zoom.script
@@ -2,10 +2,10 @@
# (The pixel assertions written for the first layout were dropped when the
# frame became the debugger's context; new ones want a settled design: see anim/README.md.)
frames 2
-console set playing false
-console set t 5
+console set deck.playing false
+console set deck.t 5
screenshot .zig-cache/canim/zoom-early.png
-console set t 14
+console set deck.t 14
screenshot .zig-cache/canim/zoom-mid.png
-console set t 999
+console set deck.t 999
screenshot .zig-cache/canim/zoom-end.png