We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d945ac commit 6a00ffaCopy full SHA for 6a00ffa
test/test_n_arity_nodes.jl
@@ -36,6 +36,8 @@
36
@test n_bin.children[3] === n_bin # Poison
37
@test DynamicExpressions.NodeModule.get_children(n_bin, Val(2)) ==
38
(n_bin_leaf1, n_bin_leaf2)
39
+ # We can also call directly with integers
40
+ @test DynamicExpressions.NodeModule.get_children(n_bin, 2) == (n_bin_leaf1, n_bin_leaf2)
41
# .l and .r should work for Node{T,3} due to general @make_accessors Node
42
@test n_bin.l === n_bin_leaf1
43
@test n_bin.r === n_bin_leaf2
0 commit comments