aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-11-05 22:30:00 +0100
committerTom Smeding <tom@tomsmeding.com>2025-11-05 22:30:00 +0100
commit92bca235e3aaa287286b6af082d3fce585825a35 (patch)
tree35be925e3ec372ff6621c569d3becca61510478e /test
parent4fbdff58dbf017240fddea1eca5615da655bcc72 (diff)
Add a stupid Map testHEADmaster
Diffstat (limited to 'test')
-rw-r--r--test/Main.hs3
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 ()