]> Git — Sourcephile - haskell/symantic.git/blob - symantic-lib/Language/Symantic/Lib/MonoFunctor/Test.hs
Fix many and some.
[haskell/symantic.git] / symantic-lib / Language / Symantic / Lib / MonoFunctor / Test.hs
1 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
2 module Lib.MonoFunctor.Test where
3
4 import Test.Tasty
5
6 import Data.Proxy (Proxy(..))
7 import Prelude hiding (zipWith)
8 import qualified Data.MonoTraversable as MT
9
10 import Language.Symantic.Lib
11 import Compiling.Test
12
13 type SS =
14 [ Proxy (->)
15 , Proxy []
16 , Proxy Integer
17 , Proxy Bool
18 , Proxy Char
19 , Proxy MT.MonoFunctor
20 , Proxy Maybe
21 ]
22 (==>) = readTe @() @SS
23
24 tests :: TestTree
25 tests = testGroup "MonoFunctor"
26 [ "omap not (Just True)" ==> Right (tyMaybe tyBool, Just False, "omap (\\x0 -> not x0) (Just True)")
27 , "omap Char.toUpper ['a', 'b', 'c']" ==> Right (tyList tyChar, "ABC", "omap (\\x0 -> Char.toUpper x0) ('a' : 'b' : 'c' : [])" )
28 ]