Skip to content

Commit

Permalink
Add an FV test for fold with differing list and accumulator types
Browse files Browse the repository at this point in the history
  • Loading branch information
0xd34df00d committed Jul 14, 2023
1 parent 3222af9 commit 9f853de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/AnalyzeSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4167,6 +4167,11 @@ spec = describe "analyze" $ do
@model [(property (= result 115))]
(fold (+) 0 [100 10 5]))
|]
expectVerified [text|
(defun test:bool ()
@model[(property (= result false))]
(fold (lambda (p: bool curr:string) false) false [""]))
|]

describe "and?" $ do
expectVerified [text|
Expand Down

0 comments on commit 9f853de

Please sign in to comment.