use of com.b2international.index.query.Expression in project snow-owl by b2ihealthcare.
the class SnomedEclShortcutTest method queryAndAll.
@Test
public void queryAndAll() throws Exception {
final Expression actual = eval(ROOT_ID + " AND *");
final Expression expected = SnomedConceptDocument.Expressions.id(ROOT_ID);
assertEquals(expected, actual);
}
use of com.b2international.index.query.Expression in project snow-owl by b2ihealthcare.
the class SnomedEclShortcutTest method queryMinusAll.
@Test
public void queryMinusAll() throws Exception {
final Expression actual = eval(ROOT_ID + " MINUS *");
final Expression expected = Expressions.matchNone();
assertEquals(expected, actual);
}
use of com.b2international.index.query.Expression in project snow-owl by b2ihealthcare.
the class SnomedEclShortcutTest method idsOnlyAndExpression.
@Test
public void idsOnlyAndExpression() throws Exception {
final Set<String> ids = ImmutableSet.of(ROOT_ID, Concepts.ABBREVIATION, Concepts.ACCEPTABILITY, Concepts.AMBIGUOUS);
final Expression actual = eval(Ecl.and(ids));
final Expression expected = Expressions.matchNone();
assertEquals(expected, actual);
}
use of com.b2international.index.query.Expression in project snow-owl by b2ihealthcare.
the class SnomedEclEvaluationRequestTest method whitespaces.
@Test
public void whitespaces() {
final Expression actual = eval(" \n \t");
final Expression expected = MatchNone.INSTANCE;
assertEquals(expected, actual);
}
use of com.b2international.index.query.Expression in project snow-owl by b2ihealthcare.
the class SnomedEclEvaluationRequestTest method selfAndOtherWithCommaAsOperator.
@Test
public void selfAndOtherWithCommaAsOperator() throws Exception {
final Expression actual = eval(ROOT_ID + " , " + OTHER_ID);
final Expression expected = Expressions.matchNone();
assertEquals(expected, actual);
}
Aggregations