Skip to content

Commit 6f7bfcc

Browse files
committed
test: add msiArithTest.template
1 parent 310940d commit 6f7bfcc

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Minimal test for post-arithmetic: <number>~(+N) / <number>~(-N)
2+
# Run example:
3+
# msi -M"P=ArithTest,TESTNUM=99" msiArithTest.template
4+
5+
record(stringin, "$(P):orig") {
6+
field(VAL, "$(TESTNUM)")
7+
field(DESC, "orig: $(TESTNUM)")
8+
}
9+
10+
record(stringin, "$(P):plus1") {
11+
field(VAL, "$(TESTNUM)~(+1)")
12+
field(DESC, "plus1: $(TESTNUM)~(+1)")
13+
}
14+
15+
record(stringin, "$(P):minus1") {
16+
field(VAL, "$(TESTNUM)~(-1)")
17+
field(DESC, "minus1: $(TESTNUM)~(-1)")
18+
}
19+
20+
# Should NOT change if your parser requires "touching" syntax (no spaces):
21+
record(stringin, "$(P):spaces_should_stay") {
22+
field(VAL, "$(TESTNUM) ~ (+1)")
23+
field(DESC, "spaces: $(TESTNUM) ~ (+1)")
24+
}
25+
26+
# Should NOT change (single quotes) - just a comment line to test ignore:
27+
# '99~(+1)' '99~(-1)'

0 commit comments

Comments
 (0)