mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
19 lines
511 B
Go
19 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)
|
||
|
}
|
||
|
}
|