@Test public void testNull() throws Exception { if (getClass() == TruffleTCK.class) { return; } TruffleVM.Symbol retNull = findGlobalSymbol(returnsNull()); Object res = retNull.invoke(null); assertNull("Should yield real Java null", res); }
/** @since 0.8 or earlier */ @Test public void testNull() throws Exception { PolyglotEngine.Value retNull = findGlobalSymbol(returnsNull()); Object res = retNull.execute().get(); assertNull("Should yield real Java null", res); }
/** @since 0.8 or earlier */ @Test public void testNullCanBeCastToAnything() throws Exception { PolyglotEngine.Value retNull = findGlobalSymbol(returnsNull()); Object res = retNull.execute().as(CompoundObject.class); assertNull("Should yield real Java null", res); }