summaryrefslogtreecommitdiff
path: root/test/argv2.lm
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2009-10-08 02:51:07 +0000
committerAdrian Thurston <thurston@complang.org>2009-10-08 02:51:07 +0000
commit61c96f6c7247d854e257533ac6fef2b3c31a27f0 (patch)
tree8112734ad33626fbd5ff0b742ff45563d14b1010 /test/argv2.lm
parent85fee7018ab68133f0efc52be40013bc01b968f6 (diff)
downloadcolm-61c96f6c7247d854e257533ac6fef2b3c31a27f0.tar.gz
don't print the null in the case of files.
Diffstat (limited to 'test/argv2.lm')
-rw-r--r--test/argv2.lm6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/argv2.lm b/test/argv2.lm
index 5a9e2895..25800dc0 100644
--- a/test/argv2.lm
+++ b/test/argv2.lm
@@ -44,8 +44,10 @@ for Item: item in Args {
{
print( "with opt: [$W] -> [$Opt]\n" )
}
- else {
- print ("file: [$Item]\n" )
+ elsif match Item
+ [F: file zero]
+ {
+ print ("file: [$F]\n" )
}
}