1 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
2 module HUnit.Foldable where
5 import Data.Proxy (Proxy(..))
7 import Language.Symantic.Lib
8 import Testing.Compiling
19 (==>) = readTe @() @SS
22 hunits = testGroup "Foldable"
23 [ {-"[]" ==> Right (tyList (tyVar "a" varZ), [], "[]")
24 ,-} "[1, 2, 3]" ==> Right (tyList tyInteger, [1, 2, 3], "1 : 2 : 3 : []")
25 , "1 : 2 : 3 : []" ==> Right (tyList tyInteger, [1, 2, 3], "1 : 2 : 3 : []")
26 , "foldMap (\\(x0:Integer) -> [x0, x0]) [1, 2, 3]" ==> Right
29 , "foldMap (\\x0 -> x0 : x0 : []) (1 : 2 : 3 : [])" )