Skip to content

Commit 571c05c

Browse files
committed
More grammar to ast implementation
1 parent 9efc2f4 commit 571c05c

File tree

2 files changed

+265
-93
lines changed

2 files changed

+265
-93
lines changed

‎ast/dump_test.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ func TestDump(t *testing.T){
1919
`BinOp(Left=Str(S="one"),Op=Add,Right=Str(S="two"))`},
2020
{&Module{}, `Module(Body=[])`},
2121
{&Module{Body: []Stmt{&Pass{}}}, `Module(Body=[Pass()])`},
22+
{&Module{Body: []Stmt{&ExprStmt{Value: &Tuple{}}}}, `Module(Body=[ExprStmt(Value=Tuple(Elts=[],Ctx=UnknownExprContext(0)))])`},
2223
}{
2324
out:=Dump(test.in)
2425
ifout!=test.out{

0 commit comments

Comments
(0)