blob: f76deeacbb5855aac72b8f812f9e916a7d727d04 (
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
|
// 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.Test;
/**
* Tests numeric terms
*
* @author bratseth
*/
public class NumericTermsTestCase extends RuleBaseAbstractTestCase {
public NumericTermsTestCase() {
super("numericterms.sr");
}
@Test
public void testNumericProduction() {
assertSemantics("+restaurants -ycat2gc:96929265","restaurants");
}
@Test
public void testNumericConditionAndProduction() {
assertSemantics("48","49");
}
}
|