Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
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
1 change: 1 addition & 0 deletions tests/testdatarescape.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(((.
1 change: 1 addition & 0 deletions tests/testdatastrcmp.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
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
2 changes: 2 additions & 0 deletions tests/testprogrescape.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Tests regexes with escaped symbols
REGEX("\({1,5}\.{1,5}") NEWLINE
7 changes: 7 additions & 0 deletions tests/testprogstrcmp.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# String comparisons
STRING("1") NEWLINE
SET(x = "abc")
SET(y = "hello")
ASSERT(x < "b")
ASSERT(y >= "helln")
ASSERT(x != y)