Skip to content

Commit f7ed7b7

Browse files
committed
fix parser test
1 parent 9e21826 commit f7ed7b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/grammar/TestParserTranslator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
import com.oracle.graal.python.nodes.attributes.SetAttributeNode;
6666
import com.oracle.graal.python.nodes.call.PythonCallNode;
6767
import com.oracle.graal.python.nodes.call.special.LookupAndCallBinaryNode;
68+
import com.oracle.graal.python.nodes.call.special.LookupAndCallTernaryNode;
6869
import com.oracle.graal.python.nodes.call.special.LookupAndCallUnaryNode;
6970
import com.oracle.graal.python.nodes.control.BlockNode;
7071
import com.oracle.graal.python.nodes.expression.AndNode;
@@ -386,7 +387,7 @@ public void parseBinaryOp() {
386387
parseAs("1 / 2", LookupAndCallBinaryNode.class);
387388
parseAs("1 % 2", LookupAndCallBinaryNode.class);
388389
parseAs("1 // 2", LookupAndCallBinaryNode.class);
389-
parseAs("1 ** 2", LookupAndCallBinaryNode.class);
390+
parseAs("1 ** 2", LookupAndCallTernaryNode.class);
390391
}
391392

392393
@Test

0 commit comments

Comments
 (0)