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

Update tests to match new implementation #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maxRN
Copy link
Contributor

@maxRN maxRN commented Sep 30, 2024

Hi! I had a look at the test failures and they seemed to be mostly just formatting differences and nothing implementation related so I went ahead and promoted the changes.

Two stylistic changes were responsible for the bulk of the changes:

  • fun x -> fun y -> x + y became fun x y -> x + y
  • Result and Option were specified as Stdlib.Result and Stdlib.Option

One strange thing: the tests were throwing errors that [@@@warning "-37"] wasn't allowed to appear at that location. I'm not sure this is true, but removing it resolved those errors and didn't introduce any new errors.
There were some regressions in the compiler regarding top-level placement of attributes: ocaml/ocaml#13170 but I couldn't tell if they were already implemented in 5.2. In any case, should those errors re-appear in a new release we can just add back those attributes. (Or maybe put it in a dune file? See https://stackoverflow.com/a/57120928/16727853)

I'm not familiar with serde's codebase so I hope I didn't miss anything, but I think most changes were pretty straightforward.

@maxRN
Copy link
Contributor Author

maxRN commented Oct 1, 2024

Sorry, having some serious git skill issues right now. Will push a new version soon.

@maxRN
Copy link
Contributor Author

maxRN commented Oct 1, 2024

Now it's fixed and rebased on the latest branch @leostera

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant