1 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
2 module Lib.Foldable.Test where
6 import Data.Proxy (Proxy(..))
7 import Prelude hiding ((&&), not, (||))
9 import Language.Symantic.Lib
21 (==>) = test_readTe @() @SS
24 tests = testGroup "Foldable"
25 [ {-"[]" ==> Right (tyList (tyVar "a" varZ), [], "[]")
26 ,-} "[1, 2, 3]" ==> Right (tyList tyInteger, [1, 2, 3], "1 : 2 : 3 : []")
27 , "1 : 2 : 3 : []" ==> Right (tyList tyInteger, [1, 2, 3], "1 : 2 : 3 : []")
28 , "foldMap (\\(x0:Integer) -> [x0, x0]) [1, 2, 3]" ==> Right
31 , "foldMap (\\x0 -> x0 : x0 : []) (1 : 2 : 3 : [])" )