diff options
Diffstat (limited to 'examples/noc/test/system_of_systems.script')
| -rw-r--r-- | examples/noc/test/system_of_systems.script | 18 |
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 |
