1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00
kyverno/pkg/utils/data/equal_test.go
Charles-Edouard Brétéché 1e30aacbd9
fix: replace more refect.DeepEqual (#6674)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-03-24 10:01:49 +00:00

18 lines
511 B
Go

package data
import "testing"
func TestDeepEqual(t *testing.T) {
if got, want := DeepEqual("a", "a"), true; got != want {
t.Errorf("DeepEqual() = %v, want %v", got, want)
}
if got, want := DeepEqual("a", "b"), false; got != want {
t.Errorf("DeepEqual() = %v, want %v", got, want)
}
if got, want := DeepEqual(1, 1), true; got != want {
t.Errorf("DeepEqual() = %v, want %v", got, want)
}
if got, want := DeepEqual(1, 2), false; got != want {
t.Errorf("DeepEqual() = %v, want %v", got, want)
}
}