mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
1e30aacbd9
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
18 lines
511 B
Go
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)
|
|
}
|
|
}
|