packages feed

linear-1.23.3: tests/Unit/V.hs

{-# LANGUAGE DataKinds #-}
module Unit.V (tests) where

import Control.DeepSeq (rnf)
import qualified Data.Vector.Unboxed as U (fromList)
import Linear.V (V)
import Test.Tasty (TestTree)
import Test.Tasty.HUnit ((@?=), testCase)

v10 :: V 10 Int
v10 = return 5

tests :: [TestTree]
tests = [ testCase "GH124" $ rnf (U.fromList [v10]) @?= () ]