1 {-# LANGUAGE OverloadedStrings #-}
2 module Core.Text.Corpus.Query where
5 import Gargantext.Core.Text.Corpus.Query
9 import Test.Tasty.QuickCheck hiding (Positive)
12 main = defaultMain tests
15 tests = testGroup "Boolean Query Engine" [
16 testProperty "Parses 'A OR B'" testParse01
19 testParse01 :: Property
21 (renderQuery <$> parseQuery "A OR B") === (renderQuery <$> Right (unsafeMkQuery $ (BConst (Positive "A") `BOr` BConst (Positive "B"))))