diff --git a/dict-type.go b/dict-type.go index 1a89d1c..ebbd53c 100644 --- a/dict-type.go +++ b/dict-type.go @@ -33,7 +33,7 @@ func NewDict(dictAny map[any]any) (dict *DictType) { } func newDict(dictAny map[any]*term) (dict *DictType) { - // TODO Change wi a call to NewDict() + // TODO Change with a call to NewDict() var d DictType if dictAny != nil { d = make(DictType, len(dictAny)) diff --git a/t_expr_test.go b/t_expr_test.go index 163bedc..2c40240 100644 --- a/t_expr_test.go +++ b/t_expr_test.go @@ -29,7 +29,9 @@ func TestExpr(t *testing.T) { /* 15 */ {`a=3; a*=2)+1; a`, nil, `[1:11] unexpected token ")"`}, /* 16 */ {`v=[2]; a=1; v[a-=1]=5; v[0]`, int64(5), nil}, /* 17 */ {`true ? {"a"} :: {"b"}`, "a", nil}, - /* 18 */ {` + /* 18 */ {`$$`, NewDict(map[any]any{"variables": NewDict(nil), "functions": NewDict(nil)}), nil}, + ///* 19 */ {`$$global`, NewDict(map[any]any{"variables": NewDict(nil), "functions": NewDict(nil)}), nil}, + /* 19 */ {` ds={ "init":func(@end){@current=0 but true}, //"current":func(){current}, @@ -44,6 +46,6 @@ func TestExpr(t *testing.T) { } // t.Setenv("EXPR_PATH", ".") - // runTestSuiteSpec(t, section, inputs, 6, 7, 8, 9) + // runTestSuiteSpec(t, section, inputs, 18) runTestSuite(t, section, inputs) }