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

19 lines
511 B
Go
Raw Permalink Normal View History

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)
}
}