File: V.hs

package info (click to toggle)
haskell-linear 1.23.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 364 kB
  • sloc: haskell: 5,235; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 343 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# 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]) @?= () ]