Skip to content

Commit

Permalink
add str-to-int test
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoeldner committed Sep 25, 2023
1 parent c304dd7 commit 3ae6527
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/AnalyzeSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2372,6 +2372,14 @@ spec = describe "analyze" $ do

describe "str-to-int" $ do
describe "without specified base" $ do
describe "as property" $
let code =
[text|
(defun test:integer ()
@model[(property (= result (str-to-int "123")))]
(str-to-int "123"))
|]
in expectVerified code
describe "concrete string" $ do
describe "valid inputs" $
let code =
Expand Down

0 comments on commit 3ae6527

Please sign in to comment.