aboutsummaryrefslogtreecommitdiff
path: root/expr_test.go
diff options
context:
space:
mode:
authorFumitoshi Ukai <fumitoshi.ukai@gmail.com>2015-04-17 09:42:30 +0900
committerFumitoshi Ukai <fumitoshi.ukai@gmail.com>2015-04-17 11:29:15 +0900
commit5f8e982ddefb75ec0634f772ab7c202ceaa67ba6 (patch)
tree96974bbf28e2c12e15af4009a1717430a741f31c /expr_test.go
parenta9e513674df2fc3f55d440b80304f6a4767f38ab (diff)
downloadkati-5f8e982ddefb75ec0634f772ab7c202ceaa67ba6.tar.gz
handle $(eval foo := $(var)) case
before: % ./run_integration_test.rb android Running make for android... 5.84 secs Running kati for android... 18.94 secs android: OK PASS! after: % ./run_integration_test.rb android Running make for android... 5.83 secs Running kati for android... 16.83 secs android: OK PASS!
Diffstat (limited to 'expr_test.go')
-rw-r--r--expr_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/expr_test.go b/expr_test.go
index 273023f..d12e48d 100644
--- a/expr_test.go
+++ b/expr_test.go
@@ -226,6 +226,16 @@ func TestParseExpr(t *testing.T) {
rhs: literal(""),
},
},
+ {
+ in: `$(eval foo := $(bar))`,
+ val: &funcEvalAssign{
+ lhs: "foo",
+ op: ":=",
+ rhs: varref{
+ literal("bar"),
+ },
+ },
+ },
} {
val, _, err := parseExpr([]byte(tc.in), nil)
if tc.isErr {