use of ai.grakn.graql.internal.pattern.property.DataTypeProperty in project grakn by graknlabs.
the class QueryParserTest method testParseBooleanType.
@Test
public void testParseBooleanType() {
GetQuery query = parse("match $x datatype boolean; get;");
VarPatternAdmin var = query.match().admin().getPattern().varPatterns().iterator().next();
// noinspection OptionalGetWithoutIsPresent
DataTypeProperty property = var.getProperty(DataTypeProperty.class).get();
Assert.assertEquals(AttributeType.DataType.BOOLEAN, property.dataType());
}
Aggregations