assrt.ml 621 B

12345678910111213141516171819202122232425
  1. let equals_int = Assert.assert_equals_int
  2. let equals_float name eps exp fou = Assert.assert_equals_float name exp fou eps
  3. let equals_string = Assert.assert_equals_string
  4. let equals_uri l e f =
  5. let e = e |> Uri.to_string
  6. and f = f |> Uri.to_string in
  7. equals_string l e f
  8. let equals_int32 l e f =
  9. let e = e |> Int32.to_string
  10. and f = f |> Int32.to_string in
  11. equals_string l e f
  12. let equals_optint l e f =
  13. let e = e |> Optint.to_string
  14. and f = f |> Optint.to_string in
  15. equals_string l e f
  16. let equals_none l v =
  17. (match v with
  18. | None -> "None"
  19. | Some _ -> "Some ..."
  20. ) |> equals_string l "None"