Changed SetValue() as SetVar() and GetValue() as GetVar()

This commit is contained in:
2024-04-03 06:29:57 +02:00
parent 6c02b02d4a
commit 088e347c95
11 changed files with 38 additions and 38 deletions
+4 -4
View File
@@ -152,8 +152,8 @@ func TestParser(t *testing.T) {
var gotErr error
ctx := NewSimpleFuncStore()
ctx.SetValue("var1", int64(123))
ctx.SetValue("var2", "abc")
ctx.SetVar("var1", int64(123))
ctx.SetVar("var2", "abc")
importMathFuncs(ctx)
importImportFunc(ctx)
parser := NewParser(ctx)
@@ -228,8 +228,8 @@ func TestListParser(t *testing.T) {
var gotErr error
ctx := NewSimpleFuncStore()
ctx.SetValue("var1", int64(123))
ctx.SetValue("var2", "abc")
ctx.SetVar("var1", int64(123))
ctx.SetVar("var2", "abc")
importMathFuncs(ctx)
parser := NewParser(ctx)