diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-07-02 00:57:06 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-07-02 02:38:52 +0900 |
commit | 8de99aac72d836c04fa8459623101a674256a9f5 (patch) | |
tree | 05ed3dfd2475a3ccbb6004fd007faab13baf5e6f /driver/parser_test.go | |
parent | Prohibit defining identifiers beginning with an underscore (diff) | |
download | urubu-8de99aac72d836c04fa8459623101a674256a9f5.tar.gz urubu-8de99aac72d836c04fa8459623101a674256a9f5.tar.xz |
Prettify trees
Diffstat (limited to 'driver/parser_test.go')
-rw-r--r-- | driver/parser_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/driver/parser_test.go b/driver/parser_test.go index f11a46a..2954ca2 100644 --- a/driver/parser_test.go +++ b/driver/parser_test.go @@ -2,6 +2,7 @@ package driver import ( "fmt" + "os" "strings" "testing" @@ -271,9 +272,9 @@ foo: "foo"; } fmt.Println("CST:") - PrintTree(p.CST(), 0) + PrintTree(os.Stdout, p.CST()) fmt.Println("AST:") - PrintTree(p.AST(), 0) + PrintTree(os.Stdout, p.AST()) }) } } |