blob: fd71c7f682c2f947047c44b4915f14149e9e1bbb (
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
27
28
29
30
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.semantics.test;
/**
* Tests a case reported by tularam
*
* @author <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a>
*/
public class NoStemmingTestCase extends RuleBaseAbstractTestCase {
public NoStemmingTestCase(String name) {
super(name,"nostemming.sr");
}
/** Should rewrite correctly */
public void testCorrectRewriting1() {
assertSemantics("+(AND i:arts i:sciences) -i:b","i:as -i:b");
}
/** Should rewrite correctly too */
public void testCorrectRewriting2() {
assertSemantics("+(AND i:arts i:sciences i:crafts) -i:b","i:asc -i:b");
}
/** Should not rewrite */
public void testNoRewriting() {
assertSemantics("+i:a -i:s","i:a -i:s");
}
}
|