new Double[] { 10.0d, 20.0d }, DataTypes.GEO_POINT);
}
@Test
public void testNormalizeWithValidGeoPointLiterals() throws Exception {
Literal symbol = (Literal) normalize(Arrays.<Symbol>asList(
Literal.newLiteral(DataTypes.GEO_POINT, DataTypes.GEO_POINT.value("POINT (10 20)")),
Literal.newLiteral(DataTypes.GEO_POINT, DataTypes.GEO_POINT.value("POINT (30 40)"))
));
assertThat(symbol.value(), instanceOf(Double.class));
// args reversed
symbol = (Literal) normalize(Arrays.<Symbol>asList(
Literal.newLiteral(DataTypes.GEO_POINT, DataTypes.GEO_POINT.value("POINT (30 40)")),
Literal.newLiteral(DataTypes.GEO_POINT, DataTypes.GEO_POINT.value("POINT (10 20)"))
));
assertThat(symbol.value(), instanceOf(Double.class));
}