Skip to content

Commit

Permalink
Fix more failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kwahlin committed Dec 17, 2024
1 parent a21618b commit b1a03ec
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions whelk-core/src/test/groovy/whelk/search2/parse/ParseSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ParseSpec extends Specification {

def "normal parse"() {
given:
def input = "AAA BBB and (CCC or DDD)"
def input = "AAA BBB AND (CCC OR DDD)"
def lexedSymbols = Lex.lexQuery(input)
Parse.OrComb parseTree = Parse.parseQuery(lexedSymbols)

Expand All @@ -19,7 +19,7 @@ class ParseSpec extends Specification {

def "implicit and group"() {
given:
def input = "AAA BBB (CCC or DDD)"
def input = "AAA BBB (CCC OR DDD)"
def lexedSymbols = Lex.lexQuery(input)
Parse.OrComb parseTree = Parse.parseQuery(lexedSymbols)

Expand All @@ -39,7 +39,7 @@ class ParseSpec extends Specification {

def "parse negative2"() {
given:
def input = "not AAA"
def input = "NOT AAA"
def lexedSymbols = Lex.lexQuery(input)
Parse.OrComb parseTree = Parse.parseQuery(lexedSymbols)

Expand All @@ -49,7 +49,7 @@ class ParseSpec extends Specification {

def "parse negative3"() {
given:
def input = "not (AAA)"
def input = "NOT (AAA)"
def lexedSymbols = Lex.lexQuery(input)
Parse.OrComb parseTree = Parse.parseQuery(lexedSymbols)

Expand All @@ -59,7 +59,7 @@ class ParseSpec extends Specification {

def "crazy grouping"() {
given:
def input = "AAA BBB and (CCC or DDD or (EEE) AND (FFF OR GGG))"
def input = "AAA BBB AND (CCC OR DDD OR (EEE) AND (FFF OR GGG))"
def lexedSymbols = Lex.lexQuery(input)
Parse.OrComb parseTree = Parse.parseQuery(lexedSymbols)

Expand All @@ -69,7 +69,7 @@ class ParseSpec extends Specification {

def "fail crazy grouping with bad parens"() {
given:
def input = "AAA BBB and (CCC or DDD or (EEE) AND (FFF OR GGG)"
def input = "AAA BBB AND (CCC OR DDD OR (EEE) AND (FFF OR GGG)"
def lexedSymbols = Lex.lexQuery(input)

when:
Expand Down Expand Up @@ -171,7 +171,7 @@ class ParseSpec extends Specification {

def "code group2"() {
given:
def input = "förf:(AAA or BBB and CCC)"
def input = "förf:(AAA OR BBB AND CCC)"
def lexedSymbols = Lex.lexQuery(input)
Parse.OrComb parseTree = Parse.parseQuery(lexedSymbols)

Expand All @@ -192,7 +192,7 @@ class ParseSpec extends Specification {

def "Bad use of code2"() {
given:
def input = "AAA or förf:"
def input = "AAA OR förf:"
def lexedSymbols = Lex.lexQuery(input)

when:
Expand All @@ -203,7 +203,7 @@ class ParseSpec extends Specification {

def "Don't parse missing or-tail"() {
given:
def input = "AAA BBB and (CCC or)"
def input = "AAA BBB AND (CCC OR)"
def lexedSymbols = Lex.lexQuery(input)

when:
Expand All @@ -214,7 +214,7 @@ class ParseSpec extends Specification {

def "Don't parse missing and-tail"() {
given:
def input = "AAA BBB and"
def input = "AAA BBB AND"
def lexedSymbols = Lex.lexQuery(input)

when:
Expand Down

0 comments on commit b1a03ec

Please sign in to comment.