Skip to content

Commit 8ddccf3

Browse files
committed
Add test case for recursive flattening
1 parent 398dc2a commit 8ddccf3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_core/test_vdom.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ def test_is_vdom(result, value):
7979
reactpy.Vdom(tagName="div")((x**2 for x in [1, 2, 3])),
8080
{"tagName": "div", "children": [1, 4, 9]},
8181
),
82+
(
83+
reactpy.Vdom(tagName="div")(["child_1", ["child_2"]]),
84+
{"tagName": "div", "children": ["child_1", "child_2"]},
85+
),
8286
],
8387
)
8488
def test_simple_node_construction(actual, expected):

0 commit comments

Comments
 (0)