aboutsummaryrefslogtreecommitdiff
path: root/expr_test.go
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-04-21 15:40:34 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-04-21 15:41:02 +0900
commit74536e6d878fcb848da78d8e52285cb1372f416e (patch)
tree290422d38c9d3eca2488ef2a4280ee126eb200ca /expr_test.go
parent17a8a6efe6a9c38792e22f91eb25552693c618aa (diff)
Revert "handle $(eval foo := $(var)) case"
This reverts commit dd61922705d1da096e6724f2a63649978913902d.
Diffstat (limited to 'expr_test.go')
-rw-r--r--expr_test.go50
1 files changed, 26 insertions, 24 deletions
diff --git a/expr_test.go b/expr_test.go
index acb51c0..febe438 100644
--- a/expr_test.go
+++ b/expr_test.go
@@ -226,38 +226,40 @@ func TestParseExpr(t *testing.T) {
rhs: literal(""),
},
},
- {
- in: `$(eval foo := $(bar))`,
- val: &funcEvalAssign{
- lhs: "foo",
- op: ":=",
- rhs: varref{
- literal("bar"),
+ /*
+ {
+ in: `$(eval foo := $(bar))`,
+ val: &funcEvalAssign{
+ lhs: "foo",
+ op: ":=",
+ rhs: varref{
+ literal("bar"),
+ },
},
},
- },
- {
- in: `$(strip $1)`,
- val: &funcStrip{
- fclosure: fclosure{
- args: []Value{
- literal("(strip"),
- paramref(1),
+ {
+ in: `$(strip $1)`,
+ val: &funcStrip{
+ fclosure: fclosure{
+ args: []Value{
+ literal("(strip"),
+ paramref(1),
+ },
},
},
},
- },
- {
- in: `$(strip $(1))`,
- val: &funcStrip{
- fclosure: fclosure{
- args: []Value{
- literal("(strip"),
- paramref(1),
+ {
+ in: `$(strip $(1))`,
+ val: &funcStrip{
+ fclosure: fclosure{
+ args: []Value{
+ literal("(strip"),
+ paramref(1),
+ },
},
},
},
- },
+ */
} {
val, _, err := parseExpr([]byte(tc.in), nil)
if tc.isErr {