Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api.codegen.test/src/com/oracle/truffle/api/codegen/test/BinaryNodeTest.java @ 9287:8e3a1635cc9e
Implemented @NodeChild(executeWith={...}).
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 24 Apr 2013 21:50:03 +0200 |
parents | 76a6e7907b67 |
children |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.codegen.test/src/com/oracle/truffle/api/codegen/test/BinaryNodeTest.java Wed Apr 24 18:39:41 2013 +0200 +++ b/graal/com.oracle.truffle.api.codegen.test/src/com/oracle/truffle/api/codegen/test/BinaryNodeTest.java Wed Apr 24 21:50:03 2013 +0200 @@ -36,7 +36,7 @@ @Test public void testAdd() { - TestRootNode<AddNode> node = create(AddNodeFactory.getInstance()); + TestRootNode<AddNode> node = createRoot(AddNodeFactory.getInstance()); assertEquals(42, executeWith(node, 19, 23)); assertEquals(42d, executeWith(node, 19d, 23d)); assertEquals(42d, executeWith(node, "19", "23")); @@ -45,7 +45,7 @@ @Test(expected = RuntimeException.class) public void testAddUnsupported() { - TestRootNode<AddNode> node = create(AddNodeFactory.getInstance()); + TestRootNode<AddNode> node = createRoot(AddNodeFactory.getInstance()); executeWith(node, new Object(), new Object()); }