P10.4: snapshot-test cascade-cue depth->index mapping (sx)
Add tests/cascade_cue.sx, a headless logic test that reuses audio.sx's pure cascade_cue_index / cascade_cue_name (the exact functions play_cascade calls) to lock the cascade-depth -> combo-cue clamp: depth <= 1 -> combo1, depth >= COMBO_CLIPS -> combo5, monotonic between. Covers the escalation logic the audio playback path can't gate-cover, with no audio. Committed stdout/exit snapshot; suite is now 19 tests.
This commit is contained in:
1
tests/expected/cascade_cue.exit
Normal file
1
tests/expected/cascade_cue.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
12
tests/expected/cascade_cue.stdout
Normal file
12
tests/expected/cascade_cue.stdout
Normal file
@@ -0,0 +1,12 @@
|
||||
== cascade cue selection (depth -> combo cue) ==
|
||||
depth 0 -> idx 0 ([sx] audio: cue combo1)
|
||||
depth 1 -> idx 0 ([sx] audio: cue combo1)
|
||||
depth 2 -> idx 1 ([sx] audio: cue combo2)
|
||||
depth 3 -> idx 2 ([sx] audio: cue combo3)
|
||||
depth 4 -> idx 3 ([sx] audio: cue combo4)
|
||||
depth 5 -> idx 4 ([sx] audio: cue combo5)
|
||||
depth 6 -> idx 4 ([sx] audio: cue combo5)
|
||||
depth 7 -> idx 4 ([sx] audio: cue combo5)
|
||||
depth 8 -> idx 4 ([sx] audio: cue combo5)
|
||||
depth 9 -> idx 4 ([sx] audio: cue combo5)
|
||||
ok: cascade cue mapping clamps into combo1..combo5
|
||||
Reference in New Issue
Block a user