{-# LANGUAGE TypeApplications #-} module Main where import Test.Tasty import Test.Tasty.HUnit import Numeric.ADDual main :: IO () main = defaultMain $ testGroup "Tests" [testCase "product [1..5]" $ gradient' @Double product [1..5] 1 @?= (120, [120, 60, 40, 30, 24])]