diff options
author | Tom Smeding <tom@tomsmeding.com> | 2024-10-22 23:46:39 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2024-10-22 23:47:53 +0200 |
commit | 3847c6ae2d5eb581dac88629e7534aa42e143411 (patch) | |
tree | 63036604613f8ac17efd8978004c579a0a5bb39b /test | |
parent | d6d07f3bf20b4a3c0e51b4414fb0e4538176d294 (diff) |
Fix interpreter bug
Diffstat (limited to 'test')
-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 f779352..a3fa484 100644 --- a/test/Main.hs +++ b/test/Main.hs @@ -241,6 +241,9 @@ tests = checkParallel $ Group "AD" let_ #q (pair (snd_ #p * fst_ #p + #y) #x) $ fst_ #q * #x + snd_ #q * fst_ #p) + ,("build0 const", adTest $ fromNamed $ lambda @(TScal TF64) #x $ body $ + idx0 $ build SZ nil $ #idx :-> const_ 0.0) + ,("build0", adTest $ fromNamed $ lambda @(TArr N0 _) #x $ body $ idx0 $ build SZ (shape #x) $ #idx :-> #x ! #idx) |