diff --git a/funcs/base64_test.go b/funcs/base64_test.go index 54cd993b1..f418bb128 100644 --- a/funcs/base64_test.go +++ b/funcs/base64_test.go @@ -21,7 +21,7 @@ func TestCreateBase64Funcs(t *testing.T) { fmap := CreateBase64Funcs(ctx) actual := fmap["base64"].(func() interface{}) - assert.Same(t, ctx, actual().(*Base64Funcs).ctx) + assert.Equal(t, ctx, actual().(*Base64Funcs).ctx) }) } } diff --git a/funcs/coll_test.go b/funcs/coll_test.go index 9b6a0b9a8..f9c9369a6 100644 --- a/funcs/coll_test.go +++ b/funcs/coll_test.go @@ -20,7 +20,7 @@ func TestCreateCollFuncs(t *testing.T) { fmap := CreateCollFuncs(ctx) actual := fmap["coll"].(func() interface{}) - assert.Same(t, ctx, actual().(*CollFuncs).ctx) + assert.Equal(t, ctx, actual().(*CollFuncs).ctx) }) } } diff --git a/funcs/conv_test.go b/funcs/conv_test.go index 3e25c6d0f..b20f013cd 100644 --- a/funcs/conv_test.go +++ b/funcs/conv_test.go @@ -21,7 +21,7 @@ func TestCreateConvFuncs(t *testing.T) { fmap := CreateConvFuncs(ctx) actual := fmap["conv"].(func() interface{}) - assert.Same(t, ctx, actual().(*ConvFuncs).ctx) + assert.Equal(t, ctx, actual().(*ConvFuncs).ctx) }) } } diff --git a/funcs/crypto_test.go b/funcs/crypto_test.go index 4d2674a04..96025e0b6 100644 --- a/funcs/crypto_test.go +++ b/funcs/crypto_test.go @@ -18,7 +18,7 @@ func TestCreateCryptoFuncs(t *testing.T) { fmap := CreateCryptoFuncs(ctx) actual := fmap["crypto"].(func() interface{}) - assert.Same(t, ctx, actual().(*CryptoFuncs).ctx) + assert.Equal(t, ctx, actual().(*CryptoFuncs).ctx) }) } } diff --git a/funcs/data_test.go b/funcs/data_test.go index 7aa209f3a..b01530b6b 100644 --- a/funcs/data_test.go +++ b/funcs/data_test.go @@ -20,7 +20,7 @@ func TestCreateDataFuncs(t *testing.T) { fmap := CreateDataFuncs(ctx) actual := fmap["data"].(func() interface{}) - assert.Same(t, ctx, actual().(*DataFuncs).ctx) + assert.Equal(t, ctx, actual().(*DataFuncs).ctx) }) } } diff --git a/funcs/filepath_test.go b/funcs/filepath_test.go index 7799d0178..0c4bbe80e 100644 --- a/funcs/filepath_test.go +++ b/funcs/filepath_test.go @@ -20,7 +20,7 @@ func TestCreateFilePathFuncs(t *testing.T) { fmap := CreateFilePathFuncs(ctx) actual := fmap["filepath"].(func() interface{}) - assert.Same(t, ctx, actual().(*FilePathFuncs).ctx) + assert.Equal(t, ctx, actual().(*FilePathFuncs).ctx) }) } } diff --git a/funcs/math_test.go b/funcs/math_test.go index 0436c891a..e816bb86a 100644 --- a/funcs/math_test.go +++ b/funcs/math_test.go @@ -22,7 +22,7 @@ func TestCreateMathFuncs(t *testing.T) { fmap := CreateMathFuncs(ctx) actual := fmap["math"].(func() interface{}) - assert.Same(t, ctx, actual().(*MathFuncs).ctx) + assert.Equal(t, ctx, actual().(*MathFuncs).ctx) }) } } diff --git a/funcs/path_test.go b/funcs/path_test.go index f5bd59ddf..a314933b3 100644 --- a/funcs/path_test.go +++ b/funcs/path_test.go @@ -20,7 +20,7 @@ func TestCreatePathFuncs(t *testing.T) { fmap := CreatePathFuncs(ctx) actual := fmap["path"].(func() interface{}) - assert.Same(t, ctx, actual().(*PathFuncs).ctx) + assert.Equal(t, ctx, actual().(*PathFuncs).ctx) }) } } diff --git a/funcs/random_test.go b/funcs/random_test.go index f32641c3c..4e30a320a 100644 --- a/funcs/random_test.go +++ b/funcs/random_test.go @@ -21,7 +21,7 @@ func TestCreateRandomFuncs(t *testing.T) { fmap := CreateRandomFuncs(ctx) actual := fmap["random"].(func() interface{}) - assert.Same(t, ctx, actual().(*RandomFuncs).ctx) + assert.Equal(t, ctx, actual().(*RandomFuncs).ctx) }) } } diff --git a/funcs/regexp_test.go b/funcs/regexp_test.go index cf7852d6d..5017c57b8 100644 --- a/funcs/regexp_test.go +++ b/funcs/regexp_test.go @@ -20,7 +20,7 @@ func TestCreateReFuncs(t *testing.T) { fmap := CreateReFuncs(ctx) actual := fmap["regexp"].(func() interface{}) - assert.Same(t, ctx, actual().(*ReFuncs).ctx) + assert.Equal(t, ctx, actual().(*ReFuncs).ctx) }) } } diff --git a/funcs/strings_test.go b/funcs/strings_test.go index 9da5299ec..bbc0dbd69 100644 --- a/funcs/strings_test.go +++ b/funcs/strings_test.go @@ -20,7 +20,7 @@ func TestCreateStringFuncs(t *testing.T) { fmap := CreateStringFuncs(ctx) actual := fmap["strings"].(func() interface{}) - assert.Same(t, ctx, actual().(*StringFuncs).ctx) + assert.Equal(t, ctx, actual().(*StringFuncs).ctx) }) } } diff --git a/funcs/test_test.go b/funcs/test_test.go index 2bcd7039c..951204ba3 100644 --- a/funcs/test_test.go +++ b/funcs/test_test.go @@ -20,7 +20,7 @@ func TestCreateTestFuncs(t *testing.T) { fmap := CreateTestFuncs(ctx) actual := fmap["test"].(func() interface{}) - assert.Same(t, ctx, actual().(*TestFuncs).ctx) + assert.Equal(t, ctx, actual().(*TestFuncs).ctx) }) } } diff --git a/funcs/time_test.go b/funcs/time_test.go index 08a9d1951..045a24d23 100644 --- a/funcs/time_test.go +++ b/funcs/time_test.go @@ -22,7 +22,7 @@ func TestCreateTimeFuncs(t *testing.T) { fmap := CreateTimeFuncs(ctx) actual := fmap["time"].(func() interface{}) - assert.Same(t, ctx, actual().(*TimeFuncs).ctx) + assert.Equal(t, ctx, actual().(*TimeFuncs).ctx) }) } } diff --git a/funcs/uuid_test.go b/funcs/uuid_test.go index 88ef52b5f..55adc9660 100644 --- a/funcs/uuid_test.go +++ b/funcs/uuid_test.go @@ -21,7 +21,7 @@ func TestCreateUUIDFuncs(t *testing.T) { fmap := CreateUUIDFuncs(ctx) actual := fmap["uuid"].(func() interface{}) - assert.Same(t, ctx, actual().(*UUIDFuncs).ctx) + assert.Equal(t, ctx, actual().(*UUIDFuncs).ctx) }) } }