Skip to content

Commit

Permalink
Add compatibility with OCaml 5.3
Browse files Browse the repository at this point in the history
This makes this package compatible with compilers which have the
`effect` keyword.
  • Loading branch information
bbc2 committed Oct 10, 2024
1 parent 380e62a commit 8c0f57e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- ubuntu-latest
ocaml-compiler:
- 4.07.x
- 5.0.x
- 5.3.x
package:
- mock
- mock-ounit
Expand Down
4 changes: 2 additions & 2 deletions src/mock.ml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ let call mock args =
| None
->
Stdlib.raise (Mock_not_configured mock.name)
| Some effect
| Some side_effect
->
begin
mock.params := args :: !(mock.params);
eval_side_effect effect
eval_side_effect side_effect
end

let recorded_calls mock =
Expand Down

0 comments on commit 8c0f57e

Please sign in to comment.