Skip to content

Commit 67a0878

Browse files
committed
Fix some ast and parser tests
they should also pass semantic analysis
1 parent 090f67e commit 67a0878

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

tests/ast/input_3.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
a = 2 * (2 + 2) + 2 * 2;
22
b = 3 * -3;
3-
C = 2 .+ 2 .* eye(3)';
3+
C = zeros(3, 3) .+ ones(3, 3) .* eye(3)';

tests/ast/output_3.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@
1818
=
1919
| C
2020
| .+
21-
| | 2
21+
| | zeros
22+
| | | 3
23+
| | | 3
2224
| | .*
23-
| | | 2
25+
| | | ones
26+
| | | | 3
27+
| | | | 3
2428
| | | transpose
2529
| | | | eye
2630
| | | | | 3

tests/parser/input_1.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ float_3 = .14;
1616
float_4 = 3.14e-2;
1717
string_1 = "#Hello!";
1818

19-
H *= H';
19+
print H';
2020

2121
a = 1;
2222
b = 2;

0 commit comments

Comments
 (0)