Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/ImplicitCastTest.java @ 12393:7cce548b0b60
Truffle-DSL: fixed minor issue in implicit cast tests.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Thu, 03 Oct 2013 18:09:21 +0200 |
parents | 4e26955b6da2 |
children | 8e8347ecabbc |
comparison
equal
deleted
inserted
replaced
12392:4e26955b6da2 | 12393:7cce548b0b60 |
---|---|
147 | 147 |
148 @Test | 148 @Test |
149 public void testImplicitCast2() { | 149 public void testImplicitCast2() { |
150 ImplicitCast2Node node = ImplicitCast2NodeFactory.create(null, null); | 150 ImplicitCast2Node node = ImplicitCast2NodeFactory.create(null, null); |
151 TestRootNode<ImplicitCast2Node> root = new TestRootNode<>(node); | 151 TestRootNode<ImplicitCast2Node> root = new TestRootNode<>(node); |
152 Assert.assertEquals("2", root.getNode().executeEvaluated(null, "2")); | 152 Assert.assertEquals("42", root.getNode().executeEvaluated(null, "4", "2")); |
153 Assert.assertEquals(true, root.getNode().executeEvaluated(null, 1)); | 153 Assert.assertEquals(true, root.getNode().executeEvaluated(null, 1, 1)); |
154 Assert.assertEquals("1", root.getNode().executeEvaluated(null, "1")); | 154 Assert.assertEquals("42", root.getNode().executeEvaluated(null, "4", "2")); |
155 Assert.assertEquals(true, root.getNode().executeEvaluated(null, 1)); | 155 Assert.assertEquals(true, root.getNode().executeEvaluated(null, 1, 1)); |
156 Assert.assertEquals(true, root.getNode().executeEvaluated(null, true)); | 156 Assert.assertEquals(true, root.getNode().executeEvaluated(null, true, true)); |
157 } | 157 } |
158 | 158 |
159 } | 159 } |