Skip to content

Commit 49ea3fb

Browse files
committed
Add builtinNode print test
1 parent 2f79ed7 commit 49ea3fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

print_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ var printTests = []printTest{
2727
functionNode{"call", []Node{propertyNode{arrayNode{[]Node{numberNode{1}, unaryNode{"not", boolNode{true}}}}, identifierNode{"foo"}}}},
2828
"call([1, not true].foo)",
2929
},
30+
{
31+
builtinNode{"len", []Node{identifierNode{"array"}}},
32+
"len(array)",
33+
},
3034
}
3135

3236
func TestPrint(t *testing.T) {

0 commit comments

Comments
 (0)