diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-17 02:37:41 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-17 02:37:41 +0100 |
commit | 59e2da485ea82fb1ee9f6f565ba5084c41f85143 (patch) | |
tree | b8c8d110ca18c2c5b01c9b875c4945e75c1e9da0 /test-files/mds-kbdc/make-tree/valid/if-elseif-else | |
parent | m (diff) | |
download | mds-59e2da485ea82fb1ee9f6f565ba5084c41f85143.tar.gz mds-59e2da485ea82fb1ee9f6f565ba5084c41f85143.tar.bz2 mds-59e2da485ea82fb1ee9f6f565ba5084c41f85143.tar.xz |
small fixes and a bunch of tests
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'test-files/mds-kbdc/make-tree/valid/if-elseif-else')
-rw-r--r-- | test-files/mds-kbdc/make-tree/valid/if-elseif-else | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/test-files/mds-kbdc/make-tree/valid/if-elseif-else b/test-files/mds-kbdc/make-tree/valid/if-elseif-else new file mode 100644 index 0000000..461ebc7 --- /dev/null +++ b/test-files/mds-kbdc/make-tree/valid/if-elseif-else @@ -0,0 +1,45 @@ +if \1 + <letter \1> : "\1" +else if \2 + <letter \2> : "\2" +else + <letter \3> : "\3" +end if + +# (if (@ 1 0-2) ‘\1’ +# (.inner +# (map (@ 2 2-2) +# (.sequence +# (keys (@ 2 2-13) ‘<letter \1>’) +# ) +# (.result +# (string (@ 2 16-20) ‘"\1"’) +# ) +# ) +# ) +# (.otherwise +# (if (@ 3 3-7) ‘\2’ +# (.inner +# (map (@ 4 4-4) +# (.sequence +# (keys (@ 4 4-15) ‘<letter \2>’) +# ) +# (.result +# (string (@ 4 18-22) ‘"\2"’) +# ) +# ) +# ) +# (.otherwise +# (map (@ 6 4-4) +# (.sequence +# (keys (@ 6 4-15) ‘<letter \3>’) +# ) +# (.result +# (string (@ 6 18-22) ‘"\3"’) +# ) +# ) +# ) +# ) +# ) +# ) + |