Skip to content

Commit

Permalink
Add pp_type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erszcz committed Mar 23, 2022
1 parent 7d57687 commit 0083d13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/typelib_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ reduce_test_() ->
?_am({_, [{atom, _, my_atom}]}, reduce(F2, [], typelib:parse_type("t(my_atom)"))),
?_am({_, [atom2, atom1]}, reduce(F3, [], ComplexTy))
].

pp_type_test_() ->
[?_am("ok" ++ _,
lists:flatten(io_lib:format("ok: ~s\n", [ ["ok", typelib:pp_type(typelib:parse_type("T"))] ])))].

0 comments on commit 0083d13

Please sign in to comment.