use of com.oracle.truffle.api.object.DynamicObjectFactory in project graal by oracle.
the class ShapePropertiesTest method testCreate.
@Test
public void testCreate() {
final DynamicObjectFactory factory = LAYOUT.createShapePropertiesTestShape(14);
Assert.assertNotNull(LAYOUT.createShapePropertiesTest(factory, 22));
}
use of com.oracle.truffle.api.object.DynamicObjectFactory in project graal by oracle.
the class ShapePropertiesTest method testObjectGetter.
@Test
public void testObjectGetter() {
final DynamicObjectFactory factory = LAYOUT.createShapePropertiesTestShape(14);
final DynamicObject object = LAYOUT.createShapePropertiesTest(factory, 22);
Assert.assertEquals(14, LAYOUT.getShapeProperty(object));
}
use of com.oracle.truffle.api.object.DynamicObjectFactory in project graal by oracle.
the class ShapePropertiesTest method testFactoryGetter.
@Test
public void testFactoryGetter() {
final DynamicObjectFactory factory = LAYOUT.createShapePropertiesTestShape(14);
Assert.assertEquals(14, LAYOUT.getShapeProperty(factory));
}
Aggregations