Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
msooseth committed Oct 31, 2024
1 parent 1c875ce commit 6d87659
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/EVM/Test/Utils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ callProcessCwd cmd args cwd = do

compile :: App m => ProjectType -> FilePath -> FilePath -> m (Either String BuildOutput)
compile CombinedJSON _root _src = internalError "unsupported compile type: CombinedJSON"
compile _ root src = do
compile Foundry root src = do
liftIO $ createDirectory (root </> "src")
liftIO $ writeFile (root </> "src" </> "unit-tests.t.sol") =<< readFile =<< Paths.getDataFileName src
liftIO $ initLib (root </> "lib" </> "tokens") ("test" </> "contracts" </> "lib" </> "erc20.sol") "erc20.sol"
Expand Down
3 changes: 1 addition & 2 deletions test/test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1479,8 +1479,7 @@ tests = testGroup "hevm"
runSolidityTest testFile "prove_add" >>= assertEqualM "test result" False
runSolidityTestCustom testFile "prove_smtTimeout" (Just 1) Nothing False Nothing Foundry >>= assertEqualM "test result" False
runSolidityTest testFile "prove_multi" >>= assertEqualM "test result" False
-- TODO: implement overflow checking optimizations and enable, currently this runs forever
-- runSolidityTest testFile "prove_distributivity" >>= assertEqualM "test result" False
runSolidityTest testFile "prove_distributivity" >>= assertEqualM "test result" False
, test "Loop-Tests" $ do
let testFile = "test/contracts/pass/loops.sol"
runSolidityTestCustom testFile "prove_loop" Nothing (Just 10) False Nothing Foundry >>= assertEqualM "test result" True
Expand Down

0 comments on commit 6d87659

Please sign in to comment.