Skip to content

Commit 77ece77

Browse files
authored
Adding yksom's lang_tests (#129)
2 parents e29e2e3 + b2d8aa7 commit 77ece77

File tree

212 files changed

+4463
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+4463
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"
2+
VM:
3+
status: error
4+
stderr:
5+
...
6+
Expected a numeric type but got type 'String_'.
7+
"
8+
9+
arbint_double_div_err = (
10+
run = (
11+
(1 << 200) // 'a'
12+
)
13+
)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"
2+
VM:
3+
status: error
4+
stderr:
5+
...
6+
Division by zero.
7+
"
8+
9+
arbint_double_div_zero_err = (
10+
run = ( (1 << 200) // 0 )
11+
)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"
2+
VM:
3+
status: error
4+
stderr:
5+
...
6+
Expected a numeric type but got type 'String_'.
7+
"
8+
9+
arbint_modulus_err = (
10+
run = (
11+
(1 << 200) % 'a'
12+
)
13+
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"
2+
VM:
3+
status: error
4+
stderr:
5+
Traceback...
6+
...
7+
Index 0 not valid for array of length 0.
8+
"
9+
10+
array_at_idx0_err = (
11+
run = (
12+
| x |
13+
14+
x := Array new.
15+
x at: 0.
16+
)
17+
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"
2+
VM:
3+
status: error
4+
stderr:
5+
Traceback...
6+
...
7+
Index 2 not valid for array of length 1.
8+
"
9+
10+
array_at_idx2_err = (
11+
run = (
12+
| x |
13+
14+
x := Array new: 1.
15+
x at: 2.
16+
)
17+
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"
2+
VM:
3+
status: error
4+
stderr:
5+
Traceback...
6+
...
7+
Index 1 not valid for array of length 0.
8+
"
9+
10+
array_at_idx_err = (
11+
run = (
12+
| x |
13+
14+
x := Array new.
15+
x at: 1.
16+
)
17+
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"
2+
VM:
3+
status: error
4+
stderr:
5+
Traceback...
6+
...
7+
Can't represent as unsigned machine integer.
8+
"
9+
10+
array_at_negative_idx_err = (
11+
run = (
12+
| x |
13+
14+
x := Array new.
15+
x at: -1.
16+
)
17+
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"
2+
VM:
3+
status: error
4+
stderr:
5+
Traceback...
6+
...
7+
Index 1 not valid for array of length 0.
8+
"
9+
10+
array_at_put_idx_err = (
11+
run = (
12+
| x |
13+
14+
x := Array new.
15+
x at: 1 put: 'a'.
16+
)
17+
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"
2+
VM:
3+
status: error
4+
stderr:
5+
Traceback...
6+
...
7+
Index 0 not valid for array of length 0.
8+
"
9+
10+
array_at_put_idx0_err = (
11+
run = (
12+
| x |
13+
14+
x := Array new.
15+
x at: 0 put: 'a'.
16+
)
17+
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"
2+
VM:
3+
status: error
4+
stderr:
5+
Traceback...
6+
...
7+
Index 2 not valid for array of length 1.
8+
"
9+
10+
array_at_put_idx2_err = (
11+
run = (
12+
| x |
13+
14+
x := Array new: 1.
15+
x at: 2 put: 'a'.
16+
)
17+
)

0 commit comments

Comments
 (0)