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 test for multiple signature items #80

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

Conversation

tatchi
Copy link
Collaborator

@tatchi tatchi commented Feb 5, 2023

No description provided.

@tatchi tatchi self-assigned this Feb 5, 2023
@tatchi tatchi force-pushed the ps/rr/add_test_for_multiple_signature_items branch 2 times, most recently from 8c96606 to ba9aeaf Compare February 7, 2023 07:44
@tatchi tatchi requested a review from ejgallego February 7, 2023 20:10
@tatchi
Copy link
Collaborator Author

tatchi commented Feb 7, 2023

The test is failing on OCaml 4.08 only. It looks like lines reporting is different on that version 🤷‍♂️

-  File "test.ml", lines 1-3, characters 0-16:
+  File "test.ml", line 1, characters 0-40:

@tatchi
Copy link
Collaborator Author

tatchi commented Feb 8, 2023

I think this is an issue in version 4.08 that got fixed in 4.09 ocaml/ocaml#8541

@tatchi tatchi force-pushed the ps/rr/add_test_for_multiple_signature_items branch 2 times, most recently from 472e9ef to ec0a4af Compare February 8, 2023 15:04
OCaml 4.08 reports different numbers.
It's been fixed for later versions in https://github.com/ocaml/ocaml/pull/8541
$ dune build 2>&1 | sed -r 's/(line(s?)|character(s?)) [0-9]+(-[0-9]+)?/\1 %NUMBER%/g'
File "test.ml", lines %NUMBER%, characters %NUMBER%:
Copy link
Collaborator Author

@tatchi tatchi Feb 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made the line and character numbers agnostic to fix the difference with OCaml 4.08

@tatchi tatchi force-pushed the ps/rr/add_test_for_multiple_signature_items branch from ec0a4af to 3c01f68 Compare February 10, 2023 05:35
<!-- ps-id: 597fd8ce-d920-40ad-b1e3-2bad11222b23 -->
@tatchi tatchi force-pushed the ps/rr/add_test_for_multiple_signature_items branch from 3c01f68 to 3b3b3f1 Compare February 10, 2023 13:11
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