Skip to content

Commit 05ee0e0

Browse files
committed
Add ducktype test from #7 as a failure case.
1 parent ad159d6 commit 05ee0e0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/testdataducktype.err

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1 2 3

tests/testprogducktype.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
SET(n = 3)
2+
SET(a = 0) # a is 0
3+
REPI(i, n, SPACE)
4+
INT(1, 10, a[i]) # no, changed my mind, a is an array
5+
END
6+
NEWLINE
7+
ASSERT(UNIQUE(a))

0 commit comments

Comments
 (0)