summaryrefslogtreecommitdiff
path: root/examples/noc/test/system_of_systems.script
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-16 21:28:20 -0300
committerGabriel Schneider <[email protected]>2026-11-16 21:28:20 -0300
commit6933f99ddb2d7103515d26838496309a807bba26 (patch)
tree991c2fe7d4a57957222876e190fa4d16a0fb889c /examples/noc/test/system_of_systems.script
parent82fca5c9f29124f37f6dcd08e73e6999ce44a69d (diff)
downloadsketchbook-6933f99ddb2d7103515d26838496309a807bba26.tar.gz
sketchbook-6933f99ddb2d7103515d26838496309a807bba26.zip
Move standalone sketches into sketchbook examples
Diffstat (limited to 'examples/noc/test/system_of_systems.script')
-rw-r--r--examples/noc/test/system_of_systems.script18
1 files changed, 18 insertions, 0 deletions
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