aboutsummaryrefslogtreecommitdiff
path: root/test/Main.hs
blob: aade6a566746eb0612786d9cc4a6568d4f9b58d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{-# 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])]