// 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; /** * Test a case reported by Alibaba * * @author bratseth */ public class AlibabaTestCase extends RuleBaseAbstractTestCase { public AlibabaTestCase() { super("alibaba.sr"); } @Test void testNumberReplacement() { assertSemantics("AND nokia 3100", "3100"); } @Test void testRuleFollowingNumber() { assertSemantics("lenovo", "legend"); } @Test void testCombinedNumberAndRegular1() { assertSemantics("AND lenovo nokia 3100", "legend 3100"); } @Test void testCombinedNumberAndRegular2() { assertSemantics("AND nokia 3100 lenovo", "3100 legend"); } }