summaryrefslogtreecommitdiff
path: root/test/argv2.lm
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2011-03-24 04:25:32 +0000
committerAdrian Thurston <thurston@complang.org>2011-03-24 04:25:32 +0000
commitfb5430c9c2cf2ad1570150316e969ab142288b58 (patch)
tree62095cd9abf26b59771ea7f3d4f3afd88689a15e /test/argv2.lm
parent6b6229980be2b0034b49eb66f00d62325e781882 (diff)
downloadcolm-fb5430c9c2cf2ad1570150316e969ab142288b58.tar.gz
Test cases use pattern-style parameters and declarations. refs #241.
Diffstat (limited to 'test/argv2.lm')
-rw-r--r--test/argv2.lm6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/argv2.lm b/test/argv2.lm
index e0c68506..318a3f14 100644
--- a/test/argv2.lm
+++ b/test/argv2.lm
@@ -39,14 +39,14 @@ def args
# The argument parser. Using an accumulator so we can send nulls after each
# arg.
accum arg_parser [args]
-arg_parser ArgParser =
+ArgParser: arg_parser =
construct arg_parser []
# Parse the args and extract the result into Args.
-argv_list ArgV = argv
+ArgV: argv_list = argv
for A: str in ArgV
ArgParser << [A '\0']
-args Args = ArgParser.finish()
+Args: args = ArgParser.finish()
# Process the args.
for Item: item in Args {