aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/prelude/semantics/test/NumericTermsTestCase.java
blob: 727a5b04e75c53b22d3a3e9a99ee98f31478f5b4 (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 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 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");
    }

}