Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
diffoscope
Manage
Activity
Members
Labels
Plan
Issues
173
Issue boards
Milestones
Wiki
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reproducible Builds
diffoscope
Commits
47542775
Commit
47542775
authored
5 years ago
by
Chris Lamb
👀
Browse files
Options
Downloads
Patches
Plain Diff
Refresh OCaml test fixtures to support OCaml >= 4.08.1.
parent
1b36f8eb
No related branches found
No related tags found
No related merge requests found
Pipeline
#84802
passed with stage
in 19 minutes and 59 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/comparators/test_ocaml.py
+4
-4
4 additions, 4 deletions
tests/comparators/test_ocaml.py
tests/data/ocaml_expected_diff
+4
-4
4 additions, 4 deletions
tests/data/ocaml_expected_diff
with
8 additions
and
8 deletions
tests/comparators/test_ocaml.py
+
4
−
4
View file @
47542775
...
...
@@ -57,7 +57,7 @@ def ocaml_version():
return
out
.
decode
(
'
utf-8
'
).
split
()[
-
1
]
@skip_unless_tool_is_at_least
(
'
ocamlobjinfo
'
,
ocaml_version
,
'
4.0
5.0
'
)
@skip_unless_tool_is_at_least
(
'
ocamlobjinfo
'
,
ocaml_version
,
'
4.0
8.1
'
)
def
test_identification
(
cmi1
):
assert
isinstance
(
cmi1
,
OcamlInterfaceFile
)
...
...
@@ -67,18 +67,18 @@ def differences(cmi1, cmi2):
return
cmi1
.
compare
(
cmi2
).
details
@skip_unless_tool_is_at_least
(
'
ocamlobjinfo
'
,
ocaml_version
,
'
4.0
5.0
'
)
@skip_unless_tool_is_at_least
(
'
ocamlobjinfo
'
,
ocaml_version
,
'
4.0
8.1
'
)
def
test_no_differences
(
cmi1
):
difference
=
cmi1
.
compare
(
cmi1
)
assert
difference
is
None
@skip_unless_tool_is_at_least
(
'
ocamlobjinfo
'
,
ocaml_version
,
'
4.0
5.0
'
)
@skip_unless_tool_is_at_least
(
'
ocamlobjinfo
'
,
ocaml_version
,
'
4.0
8.1
'
)
def
test_diff
(
differences
):
expected_diff
=
get_data
(
'
ocaml_expected_diff
'
)
assert
differences
[
0
].
unified_diff
==
expected_diff
@skip_unless_tool_is_at_least
(
'
ocamlobjinfo
'
,
ocaml_version
,
'
4.0
5.0
'
)
@skip_unless_tool_is_at_least
(
'
ocamlobjinfo
'
,
ocaml_version
,
'
4.0
8.1
'
)
def
test_compare_non_existing
(
monkeypatch
,
cmi1
):
assert_non_existing
(
monkeypatch
,
cmi1
,
has_null_source
=
False
)
This diff is collapsed.
Click to expand it.
tests/data/ocaml_expected_diff
+
4
−
4
View file @
47542775
...
...
@@ -2,7 +2,7 @@
-Unit name: Test1
+Unit name: Test2
Interfaces imported:
-
b5f47409a5d1c32a864ea3d2fbed44db
Test1
+
9ee19396ca59dbe57206a9a88d98a7d5
Test2
07ea9e20ae94d62c35cfecbe7d66d3ea Pervasives
cbd5f2d6b649925222e1e9fb63b89db6
CamlinternalFormatBasics
-
4bf3070814d7fb8e8d365d95481f8cad
Test1
+
333f54d1aae1264e7ad64cbb437cbc4f
Test2
ad45f251bbf98d3a0bf3b883546ecfc8 Stdlib
a2b1a9d869fd05813beb35645bd9cd94
CamlinternalFormatBasics
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment