summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2011-07-10 21:28:29 +0000
committerAdrian Thurston <thurston@complang.org>2011-07-10 21:28:29 +0000
commit1aa15a519c1e588a34702767875d2ec3825b67e1 (patch)
tree6de5948d1a30c8d5ca245e7a46055e511932693a /test
parentd35b9f61d48cea3277108ad8faa69e3539bd40a5 (diff)
downloadcolm-1aa15a519c1e588a34702767875d2ec3825b67e1.tar.gz
Use a list typeref for argv. Means argv_list is no longer an implicitly created
type.
Diffstat (limited to 'test')
-rw-r--r--test/accum3.lm2
-rw-r--r--test/argv1.exp4
-rw-r--r--test/argv2.lm2
3 files changed, 4 insertions, 4 deletions
diff --git a/test/accum3.lm b/test/accum3.lm
index 81003b0d..3c1b194b 100644
--- a/test/accum3.lm
+++ b/test/accum3.lm
@@ -23,7 +23,7 @@ def args
cons ArgParser: parser<args> []
-ArgV: argv_list ArgV = argv
+ArgV: list<str> ArgV = argv
for A: str in ArgV
ArgParser << [A '\0']
diff --git a/test/argv1.exp b/test/argv1.exp
index 568eda10..ea189a35 100644
--- a/test/argv1.exp
+++ b/test/argv1.exp
@@ -1,4 +1,4 @@
-<argv_list>
+<__list0>
<str>./argv1.bin</str>
<str>a</str>
<str>b</str>
@@ -6,4 +6,4 @@
<str>1</str>
<str>2</str>
<str>3</str>
-</argv_list>
+</__list0>
diff --git a/test/argv2.lm b/test/argv2.lm
index 67b38d91..4c652c0e 100644
--- a/test/argv2.lm
+++ b/test/argv2.lm
@@ -41,7 +41,7 @@ def args
cons ArgParser: parser<args>[]
# Parse the args and extract the result into Args.
-ArgV: argv_list = argv
+ArgV: list<str> = argv
for A: str in ArgV
ArgParser << [A '\0']
Args: args = ArgParser.finish()