diff --git a/README.md b/README.md index 1eda99e5..c8378c2b 100644 --- a/README.md +++ b/README.md @@ -366,7 +366,7 @@ val map : string IntMap.t = (IntMap.pp CCFormat.int CCFormat.string_quoted) map;; map = - 1->"1", 2->"2", 3->"3", 4->"4", 5->"5", + 1->"1", 2->"2", 3->"3", 4->"4", 5->"5", 6->"6", 7->"7", 8->"8", 9->"9" - : unit = () diff --git a/containers.opam b/containers.opam index 58cd7d58..eba67e11 100644 --- a/containers.opam +++ b/containers.opam @@ -10,7 +10,7 @@ build: [ ["dune" "runtest" "-p" name "-j" jobs] {with-test} ] depends: [ - "dune" { >= "1.1" } + "dune" { >= "1.11" } "dune-configurator" "result" "uchar" @@ -21,6 +21,7 @@ depends: [ "iter" { with-test } "gen" { with-test } "uutf" { with-test } + "mdx" { with-test & >= "1.5.0" & < "2.0.0" } "odoc" { with-doc } "ocaml" { >= "4.02.0" } ] diff --git a/dune b/dune index b630eb92..2dd4be13 100644 --- a/dune +++ b/dune @@ -1,8 +1,8 @@ +(rule + (targets README.md.corrected) + (deps (package containers)) + (action (run ocaml-mdx test %{dep:README.md} -o %{targets}))) -;(alias -; (name runtest) -; (deps README.md) -; (action (progn -; (run mdx test %{deps}) -; (diff? %{deps} %{deps}.corrected)))) - +(alias + (name runtest) + (action (diff README.md README.md.corrected))) diff --git a/dune-project b/dune-project index de4fc209..7655de07 100644 --- a/dune-project +++ b/dune-project @@ -1 +1 @@ -(lang dune 1.0) +(lang dune 1.1)