@@ -18,6 +18,7 @@ def test_parse_nested_field(self):
18
18
'alleles' : ['A' , 'C' ],
19
19
'a' : hl .Struct (d = 1 ),
20
20
'b' : hl .Struct (e = [2 , 9 ]),
21
+ 'h' : hl .Struct (** {'i.j' : 1 }),
21
22
'a_index' : 1 ,
22
23
},
23
24
{
@@ -29,6 +30,7 @@ def test_parse_nested_field(self):
29
30
'alleles' : ['A' , 'C' ],
30
31
'a' : hl .Struct (d = 3 ),
31
32
'b' : hl .Struct (e = [4 , 5 ]),
33
+ 'h' : hl .Struct (** {'i.j' : 2 }),
32
34
'a_index' : 1 ,
33
35
},
34
36
],
@@ -37,6 +39,7 @@ def test_parse_nested_field(self):
37
39
alleles = hl .tarray (hl .tstr ),
38
40
a = hl .tstruct (d = hl .tint32 ),
39
41
b = hl .tstruct (e = hl .tarray (hl .tint32 )),
42
+ h = hl .tstruct (** {'i.j' : hl .tint32 }),
40
43
a_index = hl .tint32 ,
41
44
),
42
45
key = ['locus' , 'alleles' ],
@@ -45,6 +48,7 @@ def test_parse_nested_field(self):
45
48
d = parse_nested_field (ht , 'a.d' ),
46
49
e = parse_nested_field (ht , 'b.e#' ),
47
50
f = parse_nested_field (ht , 'a' ),
51
+ g = parse_nested_field (ht , 'h.i.j' ),
48
52
)
49
53
self .assertListEqual (
50
54
ht .collect (),
@@ -59,6 +63,7 @@ def test_parse_nested_field(self):
59
63
d = 1 ,
60
64
e = 2 ,
61
65
f = hl .Struct (d = 1 ),
66
+ g = 1 ,
62
67
),
63
68
hl .Struct (
64
69
locus = hl .Locus (
@@ -70,6 +75,7 @@ def test_parse_nested_field(self):
70
75
d = 3 ,
71
76
e = 4 ,
72
77
f = hl .Struct (d = 3 ),
78
+ g = 2 ,
73
79
),
74
80
],
75
81
)
0 commit comments