From 322acdcda489d9fa0ab70d1b2ad4f5ab678a1834 Mon Sep 17 00:00:00 2001 From: z7zmey Date: Sat, 10 Feb 2018 13:25:08 +0200 Subject: [PATCH] List tests --- node/expr/t_list_test.go | 108 +++++++++++++++++++++++++++++++++++++++ php5/php5.go | 92 +++++++++++++++++---------------- php5/php5.y | 10 ++-- 3 files changed, 163 insertions(+), 47 deletions(-) create mode 100644 node/expr/t_list_test.go diff --git a/node/expr/t_list_test.go b/node/expr/t_list_test.go new file mode 100644 index 0000000..7e00f1c --- /dev/null +++ b/node/expr/t_list_test.go @@ -0,0 +1,108 @@ +package expr_test + +import ( + "bytes" + "testing" + + "github.com/z7zmey/php-parser/node/expr/assign_op" + + "github.com/z7zmey/php-parser/node/expr" + + "github.com/z7zmey/php-parser/node" + "github.com/z7zmey/php-parser/node/stmt" + "github.com/z7zmey/php-parser/php5" + "github.com/z7zmey/php-parser/php7" +) + +func TestList(t *testing.T) { + src := `