Skip to content

Commit 739a59e

Browse files
committed
update regression tests
1 parent d8dc84c commit 739a59e

Some content is hidden

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

81 files changed

+771
-555
lines changed

regression/dune

+160-318
Large diffs are not rendered by default.

regression/gen.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let () =
2121
let found =
2222
if Sys.file_exists !lama_file then (
2323
cram_printfn
24-
" $ ../src/Driver.exe -i test%03d.lama < \
24+
" $ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test%03d.lama < \
2525
test%03d.input"
2626
i i;
2727
true)

regression/test001.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test001.lama < test001.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test001.lama < test001.input
2+
> > 90

regression/test002.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test002.lama < test002.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test002.lama < test002.input
2+
> > 41

regression/test003.t

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
$ ../src/Driver.exe -i test003.lama < test003.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test003.lama < test003.input
2+
> > 7
3+
3
4+
1

regression/test004.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test004.lama < test004.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test004.lama < test004.input
2+
> > 10

regression/test005.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test005.lama < test005.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test005.lama < test005.input
2+
> > 11

regression/test006.t

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
$ ../src/Driver.exe -i test006.lama < test006.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test006.lama < test006.input
2+
> > 1
3+
1
4+
0
5+
1
6+
0
7+
0

regression/test007.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test007.lama < test007.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test007.lama < test007.input
2+
-4

regression/test008.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test008.lama < test008.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test008.lama < test008.input
2+
-45

regression/test009.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test009.lama < test009.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test009.lama < test009.input
2+
1024

regression/test010.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test010.lama < test010.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test010.lama < test010.input
2+
499950

regression/test011.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test011.lama < test011.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test011.lama < test011.input
2+
2

regression/test012.t

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
$ ../src/Driver.exe -i test012.lama < test012.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test012.lama < test012.input
2+
> 0
3+
0
4+
0
5+
1
6+
1
7+
0
8+
1
9+
1

regression/test013.t

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
$ ../src/Driver.exe -i test013.lama < test013.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test013.lama < test013.input
2+
> 10
3+
11
4+
10
5+
11
6+
3
7+
2
8+
1
9+
0

regression/test014.t

+32-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1-
$ ../src/Driver.exe -i test014.lama < test014.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test014.lama < test014.input
2+
> 1
3+
1
4+
1
5+
1
6+
1
7+
1
8+
1
9+
1
10+
1
11+
1
12+
1
13+
1
14+
1
15+
1
16+
1
17+
1
18+
1
19+
1
20+
1
21+
1
22+
1
23+
1
24+
1
25+
1
26+
1
27+
1
28+
1
29+
1
30+
1
31+
1
32+
1

regression/test015.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test015.lama < test015.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test015.lama < test015.input
2+
> 7919

regression/test016.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test016.lama < test016.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test016.lama < test016.input
2+
> 3628800

regression/test017.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test017.lama < test017.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test017.lama < test017.input
2+
> 6765

regression/test018.t

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1-
$ ../src/Driver.exe -i test018.lama < test018.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test018.lama < test018.input
2+
> 2
3+
0
4+
3
5+
4
6+
5
7+
0
8+
7
9+
0
10+
11
11+
0
12+
13
13+
0
14+
17
15+
2

regression/test019.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test019.lama < test019.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test019.lama < test019.input
2+
499950

regression/test020.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test020.lama < test020.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test020.lama < test020.input
2+
> 7919

regression/test021.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test021.lama < test021.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test021.lama < test021.input
2+
> 3628800

regression/test022.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test022.lama < test022.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test022.lama < test022.input
2+
> 6765

regression/test023.t

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
$ ../src/Driver.exe -i test023.lama < test023.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test023.lama < test023.input
2+
> > > > > > 35

regression/test024.t

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
$ ../src/Driver.exe -i test024.lama < test024.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test024.lama < test024.input
2+
> 3
3+
8

regression/test025.t

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1-
$ ../src/Driver.exe -i test025.lama < test025.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test025.lama < test025.input
2+
> 1
3+
100
4+
200
5+
300
6+
2
7+
100
8+
200
9+
300
10+
3
11+
100
12+
200
13+
300

regression/test026.t

+22-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1-
$ ../src/Driver.exe -i test026.lama < test026.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test026.lama < test026.input
2+
> 1
3+
100
4+
200
5+
300
6+
100
7+
200
8+
300
9+
2
10+
100
11+
200
12+
300
13+
100
14+
200
15+
300
16+
3
17+
100
18+
200
19+
300
20+
100
21+
200
22+
300

regression/test027.t

+36-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1-
$ ../src/Driver.exe -i test027.lama < test027.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test027.lama < test027.input
2+
> 1
3+
100
4+
200
5+
300
6+
1
7+
2
8+
100
9+
200
10+
300
11+
3
12+
100
13+
200
14+
300
15+
3
16+
4
17+
100
18+
200
19+
300
20+
5
21+
100
22+
200
23+
300
24+
5
25+
100
26+
200
27+
300
28+
100
29+
200
30+
300
31+
100
32+
200
33+
300
34+
100
35+
200
36+
300

regression/test028.t

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1-
$ ../src/Driver.exe -i test028.lama < test028.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test028.lama < test028.input
2+
> 7
3+
5040
4+
6
5+
720
6+
5
7+
120
8+
4
9+
24
10+
3
11+
6
12+
2
13+
2
14+
1
15+
1

regression/test029.t

+19-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1-
$ ../src/Driver.exe -i test029.lama < test029.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test029.lama < test029.input
2+
> 9
3+
55
4+
8
5+
34
6+
7
7+
21
8+
6
9+
13
10+
5
11+
8
12+
4
13+
5
14+
3
15+
3
16+
2
17+
2
18+
1
19+
1

regression/test034.t

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1-
$ ../src/Driver.exe -i test034.lama < test034.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test034.lama < test034.input
2+
> 97
3+
98
4+
99
5+
100
6+
101
7+
102
8+
103
9+
104
10+
99
11+
100
12+
101
13+
102
14+
103
15+
104
16+
105
17+
106

regression/test036.t

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1-
$ ../src/Driver.exe -i test036.lama < test036.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test036.lama < test036.input
2+
> 97
3+
98
4+
99
5+
100
6+
101
7+
102
8+
103
9+
104
10+
97
11+
97
12+
97
13+
97
14+
97
15+
97
16+
97
17+
97

regression/test040.t

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
$ ../src/Driver.exe -i test040.lama < test040.input
2-
Error: could not find an interface file for import "Std"
3-
[255]
1+
$ ../src/Driver.exe -runtime ../runtime -I ../stdlib/x64 -i test040.lama < test040.input
2+
> 1
3+
2
4+
3
5+
4

0 commit comments

Comments
 (0)