Skip to content

Commit

Permalink
Add test indicating a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbin committed Feb 19, 2024
1 parent ef44da3 commit 75e65b3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/test__introspection.ml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ let print_implements (Provider.T { t = _; interface }) =
;;

let%expect_test "introspection" =
require_does_not_raise [%here] (fun () ->
print_implements (Provider.T { t = (); interface = Provider.Interface.make [] });
[%expect.unreachable]);
[%expect
{|
(* CR require-failed: repo/provider/test/test__introspection.ml:29:25.
Do not 'X' this CR; instead make the required property true,
which will make the CR disappear. For more information, see
[Expect_test_helpers_base.require]. *)
("unexpectedly raised" (
"Class not implemented" ((
class_info (
(id #id)
(name
Provider_test__Interface__Directory_reader.Provider_interface.Directory_reader)))))) |}];
let unix_reader = Providers.Unix_reader.make () in
Eio_main.run
@@ fun env ->
Expand Down

0 comments on commit 75e65b3

Please sign in to comment.