Skip to content
This repository has been archived by the owner on Jun 30, 2019. It is now read-only.

Commit

Permalink
ppx_expect / inline_tests drags in dependencies such as base (see oca…
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Apr 2, 2019
1 parent 9ed1a96 commit c64ad9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
(public_name udns)
(wrapped false)
(libraries rresult cstruct astring fmt ipaddr logs ptime gmap domain-name)
(preprocess (pps ppx_expect))
(inline_tests))
; (preprocess (pps ppx_expect)) once https://github.com/ocaml/dune/issues/897 is resolved
; (inline_tests)
)
3 changes: 2 additions & 1 deletion src/udns.ml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ module Name = struct
in
names, off

(* enable once https://github.com/ocaml/dune/issues/897 is resolved
let%expect_test "decode" =
let test ?hostname ?(map = Int_map.empty) ?(off = 0) data rmap roff =
match decode ?hostname map (Cstruct.of_string data) ~off with
Expand Down Expand Up @@ -271,7 +272,7 @@ module Name = struct
[%expect {|
03 66 6f 6f 03 62 61 72 00 03 62 61 7a 03 66 6f
6f 03 62 61 72 00|}]

*)
end

(* start of authority *)
Expand Down

0 comments on commit c64ad9c

Please sign in to comment.