Skip to content

Commit 5ac2dab

Browse files
committed
Add a test
1 parent 9999453 commit 5ac2dab

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

execution/execute_assign_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,14 @@ $fullName = $firstName + ' ' + $lastName;
7272
execution.WithUnstable(),
7373
},
7474
}.run)
75+
t.Run("self referencing variable", testCase{
76+
s: `$x=1;$x=$x*2`,
77+
outFn: func() *model.Value {
78+
r := model.NewIntValue(2)
79+
return r
80+
},
81+
opts: []execution.ExecuteOptionFn{
82+
execution.WithUnstable(),
83+
},
84+
}.run)
7585
}

0 commit comments

Comments
 (0)