a lot oh changes to the test framework and new test files t_builtin-fmt_test.go and t_plugin_test.go added

This commit is contained in:
2024-06-25 10:59:03 +02:00
parent ef1baa11a8
commit ba9b9cb28f
21 changed files with 235 additions and 97 deletions
+10
View File
@@ -6,6 +6,7 @@ package expr
import (
"errors"
"reflect"
"testing"
)
@@ -154,3 +155,12 @@ func TestAnyInteger(t *testing.T) {
}
t.Logf("%s -- test count: %d, succeeded: %d, failed: %d", section, len(inputs), succeeded, failed)
}
func TestCopyMap(t *testing.T) {
source := map[string]int{"one": 1, "two": 2, "three": 3}
dest := make(map[string]int)
result := CopyMap(dest, source)
if !reflect.DeepEqual(result, source) {
t.Errorf("utils.CopyMap() failed")
}
}