Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add various tests where correct behaviour is currently not well-defined
  • Loading branch information
austrin committed Nov 16, 2018
commit 190d2afca999f6b9fdc56c4fa97f505bad917ef6
1 change: 1 addition & 0 deletions tests/testdataducktype.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1 2 3
1 change: 1 addition & 0 deletions tests/testdatafloatprec.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
1 change: 1 addition & 0 deletions tests/testdataloopvar.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0 1
2 changes: 2 additions & 0 deletions tests/testdatarecharclass.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
9
040abcdefghiz
1 change: 1 addition & 0 deletions tests/testdatarerepetitions.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqr
7 changes: 7 additions & 0 deletions tests/testprogducktype.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SET(n = 3)
SET(a = 0) # a is 0
REPI(i, n, SPACE)
INT(1, 10, a[i]) # no, changed my mind, a is an array
END
NEWLINE
ASSERT(UNIQUE(a))
8 changes: 8 additions & 0 deletions tests/testprogfloatprec.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
INT(1, 100) NEWLINE

SET(q=0.004)
SET(p=0)
REP(250)
SET(p = p+q)
END
ASSERT(p <= 1.0)
6 changes: 6 additions & 0 deletions tests/testprogloopvar.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Read at least 2 bits (space-separated)
WHILEI(i,!MATCH("\n"), SPACE)
INT(0,1)
END
ASSERT(i>=2)
NEWLINE
1 change: 1 addition & 0 deletions tests/testprogrecharclass.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REGEX("\d\s{3}\d{3}\w{10}") NEWLINE
2 changes: 2 additions & 0 deletions tests/testprogrerepetitions.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Check regex repetitions
REGEX("[a-z]{1,1500}") NEWLINE