We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ff3efb commit bc13380Copy full SHA for bc13380
lib_test/test_runner.ml
@@ -680,6 +680,14 @@ let test_ipv6_parsing =
680
name >:: test
681
) ipv6_addresses
682
683
+let test_make_path_rel_identity =
684
+ let path = "//aaa/bbb" in
685
+ sprintf "of_string (to_string _) identity:%s" path >:: fun () ->
686
+ let u = Uri.make ~path () in
687
+ let u' = Uri.of_string (Uri.to_string u) in
688
+ assert_equal ~printer:Uri.to_string ~cmp:Uri.equal
689
+ u u'
690
+
691
let compat_uris =
692
[ "http://\nhost"
693
; "http://host\n/path"
@@ -723,6 +731,7 @@ let _ =
723
731
@ test_canonicalize
724
732
@ test_with_uri
725
733
@ test_ipv6_parsing
734
+ @ [ test_make_path_rel_identity ]
726
735
) in
727
736
let verbose = ref false in
728
737
let set_verbose _ = verbose := true in
0 commit comments