Skip to content

Commit

Permalink
Test records
Browse files Browse the repository at this point in the history
  • Loading branch information
vch9 committed Dec 13, 2021
1 parent f7570c9 commit e954113
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/ppx_deriving_qcheck/deriver/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
test_qualified_names
test_recursive
test_tuple
test_variants)
test_variants
test_record)
(libraries qcheck-alcotest ppxlib ppx_deriving_qcheck qcheck)
(preprocess (pps ppxlib.metaquot ppx_deriving_qcheck)))
12 changes: 12 additions & 0 deletions test/ppx_deriving_qcheck/deriver/test_record.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
type t = {
rec_types : string list;
curr_types : string list;
curr_type : string
}
[@@deriving qcheck]

type color = Color of { red : float; green : float; blue : float }
[@@deriving qcheck]

(* TODO: use these types to test generated values inside records.
For now, having these ensure the compilation *)

0 comments on commit e954113

Please sign in to comment.