Skip to content

Commit e954113

Browse files
committed
Test records
1 parent f7570c9 commit e954113

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

test/ppx_deriving_qcheck/deriver/dune

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
test_qualified_names
66
test_recursive
77
test_tuple
8-
test_variants)
8+
test_variants
9+
test_record)
910
(libraries qcheck-alcotest ppxlib ppx_deriving_qcheck qcheck)
1011
(preprocess (pps ppxlib.metaquot ppx_deriving_qcheck)))
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
type t = {
2+
rec_types : string list;
3+
curr_types : string list;
4+
curr_type : string
5+
}
6+
[@@deriving qcheck]
7+
8+
type color = Color of { red : float; green : float; blue : float }
9+
[@@deriving qcheck]
10+
11+
(* TODO: use these types to test generated values inside records.
12+
For now, having these ensure the compilation *)

0 commit comments

Comments
 (0)