1 {-# LANGUAGE OverloadedStrings #-}
2 {-# OPTIONS_GHC -fno-warn-orphans #-}
4 module Trans.Bool.Const.Test where
7 import Test.Tasty.HUnit
9 import qualified Expr.Bool.Test as Bool
10 import qualified Repr.String.Test ()
11 import Language.LOL.Symantic.Repr
12 import Language.LOL.Symantic.Trans
15 tests = testGroup "Const" $
16 let (==>) expr expected =
19 string_from_expr (trans_bool_const expr) in
25 , Bool.e6 ==> "(x | y) & !(x & y)"
26 , Bool.e7 ==> "((x | y) & !(x & y) | z) & !(((x | y) & !(x & y)) & z)"
27 , Bool.e8 ==> "(x | !y) & !(x & !y)"