Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compatibility with OCaml 5.3 #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
- ubuntu-latest
ocaml-compiler:
- 4.07.x
- 5.0.x
- 5.2.x
package:
- mock
- mock-ounit
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: opam install "${{ matrix.package }}.dev" --with-doc --with-test
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