1module Test.TypeRep.Vector
5import Prelude hiding (lookup)
7import Data.Functor.Identity (Identity (..))
8import Test.Hspec (Spec, describe, it, shouldBe)
10import Data.TypeRep.Vector (TF (..), fromList, lookup)
13-- | Simple test for 'lookup', 'insert' and 'size' functions.
15vectorSpec = describe "Vector TypeRep" $
16 describe "Lookup Test" $ do
17 it "returns the inserted element" $
18 lookup (fromList [TF (Identity 'a')]) `shouldBe` Just (Identity 'a')
19 it "returns the second inserted value of the same type" $
20 lookup (fromList [TF (Identity 'b'), TF (Identity 'a')]) `shouldBe` Just (Identity 'b')
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list