Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/nodes/serial/PostOrderDeserializerTest.java @ 14631:97321295c974
fix PostOrderDeserializerTest
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Thu, 20 Mar 2014 02:22:16 +0100 |
parents | 96c1d057a5ed |
children |
comparison
equal
deleted
inserted
replaced
14630:51d774eb5e14 | 14631:97321295c974 |
---|---|
149 if (expectedAst == null) { | 149 if (expectedAst == null) { |
150 Assert.assertNull(actualAst); | 150 Assert.assertNull(actualAst); |
151 return; | 151 return; |
152 } | 152 } |
153 | 153 |
154 expectedAst.adoptChildren(); | |
155 | |
154 Assert.assertNotNull(actualAst); | 156 Assert.assertNotNull(actualAst); |
155 // fields are asserted using the corresponding equals implementation | 157 // fields are asserted using the corresponding equals implementation |
156 Assert.assertEquals(expectedAst, actualAst); | 158 Assert.assertEquals(expectedAst, actualAst); |
157 | 159 |
158 Iterable<Node> expectedChildIterator = expectedAst.getChildren(); | 160 Iterable<Node> expectedChildIterator = expectedAst.getChildren(); |