Skip to content

Commit 1c0abcd

Browse files
committed
Add: very basic regression test for conditionals
1 parent 7b97274 commit 1c0abcd

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

regression/024_conditional.nml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
if (param[0]) {
2+
param[1] = 1;
3+
}
4+
5+
if (0) {
6+
param[2] = 1;
7+
}
8+
9+
if (1) {
10+
param[3] = 1;
11+
}
50 Bytes
Binary file not shown.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Automatically generated by GRFCODEC. Do not modify!
2+
// (Info version 7)
3+
// Escapes: 2+ 2- 2< 2> 2u< 2u> 2/ 2% 2u/ 2u% 2* 2& 2| 2^ 2sto = 2s 2rst = 2r 2psto 2ror = 2rot 2cmp 2ucmp 2<< 2u>> 2>>
4+
// Escapes: 71 70 7= 7! 7< 7> 7G 7g 7gG 7GG 7gg 7c 7C
5+
// Escapes: D= = DR D+ = DF D- = DC Du* = DM D* = DnF Du<< = DnC D<< = DO D& D| Du/ D/ Du% D%
6+
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
7+
8+
// param[64] = param[0]
9+
0 * 5 0D 40 \D= 00 00
10+
11+
1 * 9 09 40 04 \7= \dx00000000 01
12+
13+
// param[1] = 1
14+
2 * 9 0D 01 \D= FF 00 \dx00000001
15+
16+
// param[3] = 1
17+
3 * 9 0D 03 \D= FF 00 \dx00000001
18+

0 commit comments

Comments
 (0)