aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/prelude/semantics/test/AutomataNotTestCase.java
blob: 198cb3aeb50061146c975b8bd242591ad411e451 (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
28
// Copyright Vespa.ai. 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.Disabled;
import org.junit.jupiter.api.Test;

/**
 * Tests that ![a] is interpreted as "default:![a]", not as "!default:[a]",
 * that is, in negative conditions we still only want to match the default index by default.
 *
 * @author bratseth
 */
public class AutomataNotTestCase extends RuleBaseAbstractTestCase {

    public AutomataNotTestCase() {
        super("automatanot.sr", "semantics.fsa");
    }

    // TODO: MAKE THIS WORK!
    @Test
    @Disabled
    void testAutomataNot() {
        if (System.currentTimeMillis() > 0) return;
        assertSemantics("carpenter", "carpenter");
        assertSemantics("RANK brukbar busname:brukbar", "brukbar");
    }

}