diff --git a/config/lang/eval_test.go b/config/lang/eval_test.go index 3446be9d2d..6af2c714b1 100644 --- a/config/lang/eval_test.go +++ b/config/lang/eval_test.go @@ -95,6 +95,21 @@ func TestEval(t *testing.T) { ast.TypeString, }, + { + "foo ${bar+1}", + &ast.BasicScope{ + VarMap: map[string]ast.Variable{ + "bar": ast.Variable{ + Value: 41, + Type: ast.TypeInt, + }, + }, + }, + false, + "foo 42", + ast.TypeString, + }, + { "foo ${rand()}", &ast.BasicScope{