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