blob: 045d86985474d44533a6020c62ee06f287f327a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.semantics.test;
import org.junit.jupiter.api.Test;
/**
* @author bratseth
*/
public class OrPhraseTestCase extends RuleBaseAbstractTestCase {
public OrPhraseTestCase() {
super("orphrase.sr");
}
@Test
void testReplacing1() {
assertSemantics("OR title:\"software engineer\" (AND new york)", "software engineer new york");
assertSemantics("title:\"software engineer\"", "software engineer"); // Skip or when there is nothing else
}
@Test
void testReplacing2() {
assertSemantics("OR lotr \"lord of the rings\"", "lotr");
}
}
|