Skip to content

Commit

Permalink
test updated
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielegenovese committed Jul 14, 2024
1 parent 3606b65 commit ba41bb5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/ast/Python3VisitorImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.AbstractMap.SimpleEntry;

import ast.nodes.*;
import ast.types.*;
import codegen.Label;
import java.lang.reflect.Array;
import java.security.interfaces.EdECKey;
import parser.Python3Lexer;
import parser.Python3ParserBaseVisitor;
import parser.Python3Parser.*;
Expand Down
2 changes: 1 addition & 1 deletion test/2a.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
m = m * tmp
n = n - 1
c = 0
for i in m:
for i in range(m):
g = 2 * m
c = c + i + g
print(m + c)
6 changes: 3 additions & 3 deletions test/2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
y = 7
c = 0
m = 1
while n > 1:
tmp = 2 * x + n
while y > 1:
tmp = 2 * x + y
m = m * tmp
n = n - 1
y = y - 1
for i in n:
g = 2 * m + i
c = c + i + g
Expand Down
1 change: 1 addition & 0 deletions test/2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
c = y * n + g
y = y - 1

y = 5
for i in range(y):
g = 2 * y
c = c + i + g
Expand Down

0 comments on commit ba41bb5

Please sign in to comment.