summaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/prelude/semantics/test/NumericTermsTestCase.java
blob: e0bfc596d676dc5dff73097ac190ff0cb92f8871 (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
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.semantics.test;

/**
 * Tests numeric terms
 *
 * @author bratseth
 */
public class NumericTermsTestCase extends RuleBaseAbstractTestCase {

    public NumericTermsTestCase(String name) {
        super(name,"numericterms.sr");
    }

    public void testNumericProduction() {
        assertSemantics("+restaurants -ycat2gc:96929265","restaurants");
    }

    public void testNumericConditionAndProduction() {
        assertSemantics("48","49");
    }

}