From 6933f99ddb2d7103515d26838496309a807bba26 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 16 Nov 2026 21:28:20 -0300 Subject: Move standalone sketches into sketchbook examples --- examples/noc/test/system_of_systems.script | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/noc/test/system_of_systems.script (limited to 'examples/noc/test/system_of_systems.script') diff --git a/examples/noc/test/system_of_systems.script b/examples/noc/test/system_of_systems.script new file mode 100644 index 0000000..91b9fc0 --- /dev/null +++ b/examples/noc/test/system_of_systems.script @@ -0,0 +1,18 @@ +# Three emitters, added a while apart; the first fills up to its steady +# state: a particle lives 128 steps and one is added a step. +click 160 80 +frames 150 +expect emitters.len 1 +expect emitters.buffer[0].particles.len 128 +click 320 120 +frames 60 +click 480 100 +frames 40 +expect emitters.len 3 +expect emitters.buffer[2].origin[0] 480 +expect emitters.buffer[0].particles.len 128 +expect emitters.buffer[1].particles.len 102 +expect emitters.buffer[2].particles.len 41 +# The oldest particle of a full emitter is about to die. +expect emitters.buffer[0].particles.buffer[0].lifespan 1 +screenshot .zig-cache/e2e/system_of_systems.png -- cgit v1.3