Skip to content

Instantly share code, notes, and snippets.

@zardoru
Last active August 29, 2015 14:14
Show Gist options
  • Save zardoru/4bb5b79a1e5d4966abf7 to your computer and use it in GitHub Desktop.
Save zardoru/4bb5b79a1e5d4966abf7 to your computer and use it in GitHub Desktop.
BMS branching/nesting test
By adding these lines above #RANDOM, the crisis is averted.
#00011:00010001
#00012:01000100
#00013:01000100
#00014:01000100
#00015:01000100
#00016:01000100
#00018:01000100
#00019:01000100
#TITLE Conditional Tests
#ARTIST ???
#MAKER Agka
#WAV01 x.wav
#BPM 120
-- Line with no RANDOM tag. Parsed as false.
#if 30
#00011:00010001
#endif
#RANDOM 15
#00013:00010001
#00013:01000100
-- 7/4ths measure.
#00102:1.75
#00112:00000000000001
#RANDOM 4
#if 1
-- Arbitrary indentation and conditional chaining.
#00115:01000000000000
#elseif 2
#00112:00010000000000
#RANDOM 2
#if 1
#00113:01000000000000
#else
#00114:01000000000001
#endif
-- Cases 3 and 4.
#else
#00115:00000000000001
#00116:00000000000001
#endif
-- endif outside of chain.
#endif
-- else outside of chain.
#else
-- elseif outside of chain.
#elseif
#RANDOM 1
-- Undefined random nested cases (All but the first false)
#if 1
#if 1
#if 1
#if 1
#00211:0101010101010101
#endif
#endif
#endif
#endif
-- Defined random nested cases (All true)
-- If this were defined before the previous test the previous test would be true.
#if 1
#RANDOM 1
#if 1
#RANDOM 1
#if 1
#RANDOM 1
#if 1
#00216:0101010101010101
#endif
#endif
#endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment