From 45f5ddac12bb580b4ecaec2d93ee7fac2c903aff Mon Sep 17 00:00:00 2001 From: Ulysse <5031221+voodoos@users.noreply.github.com> Date: Tue, 30 Jul 2024 19:22:07 +0200 Subject: [PATCH] Fix test on 5.2 and ocamlformat dependency (#1353) * Update ocamlformat dependency in dune-project * Promote expected change in documentation test This is due to a change of the List.iter documentation in the standard library. --- dune-project | 2 +- ocaml-lsp-server/test/e2e-new/documentation.ml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dune-project b/dune-project index 8841ae993..7fc9d1dc5 100644 --- a/dune-project +++ b/dune-project @@ -63,7 +63,7 @@ possible and does not make any assumptions about IO. astring camlp-streams (ppx_expect (and (>= v0.15.0) (< 0.17.0) :with-test)) - (ocamlformat (and :with-test (= 0.26.1))) + (ocamlformat (and :with-test (= 0.26.2))) (ocamlc-loc (>= 3.7.0)) (pp (>= 1.1.2)) (csexp (>= 1.5)) diff --git a/ocaml-lsp-server/test/e2e-new/documentation.ml b/ocaml-lsp-server/test/e2e-new/documentation.ml index 6255d1aa4..c8b81d53a 100644 --- a/ocaml-lsp-server/test/e2e-new/documentation.ml +++ b/ocaml-lsp-server/test/e2e-new/documentation.ml @@ -109,7 +109,7 @@ let%expect_test "Documentation when List module is shadowed" = { "doc": { "kind": "plaintext", - "value": "[iter f [a1; ...; an]] applies function [f] in turn to\n [a1; ...; an]. It is equivalent to\n [begin f a1; f a2; ...; f an; () end]." + "value": "[iter f [a1; ...; an]] applies function [f] in turn to\n [[a1; ...; an]]. It is equivalent to\n [f a1; f a2; ...; f an]." } } |}] ;;