diff options
| author | Tom Smeding <tom@tomsmeding.com> | 2025-11-05 22:30:00 +0100 |
|---|---|---|
| committer | Tom Smeding <tom@tomsmeding.com> | 2025-11-05 22:30:00 +0100 |
| commit | 92bca235e3aaa287286b6af082d3fce585825a35 (patch) | |
| tree | 35be925e3ec372ff6621c569d3becca61510478e /test/Main.hs | |
| parent | 4fbdff58dbf017240fddea1eca5615da655bcc72 (diff) | |
Diffstat (limited to 'test/Main.hs')
| -rw-r--r-- | test/Main.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Main.hs b/test/Main.hs index c2141ee..358073f 100644 --- a/test/Main.hs +++ b/test/Main.hs @@ -711,6 +711,9 @@ tests_AD = testGroup "AD" ,adTestTp "fold-freearr" (C "" 1) $ fromNamed $ lambda @(TArr N1 R) #a $ body $ idx0 $ fold1i (#x :-> #y :-> #x * #y + #a ! pair nil 0) 1 #a + + ,adTest "map" $ fromNamed $ lambda @(TArr N1 R) #a $ body $ + idx0 $ sum1i $ map_ (#x :-> 2 * #x) #a ] main :: IO () |
