mirror of
https://github.com/yusing/godoxy.git
synced 2025-07-26 05:34:03 +02:00
fix: tests
This commit is contained in:
parent
76fb0cfdbb
commit
edada22ac0
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ func TestStoreNil(t *testing.T) {
|
||||||
if v.Load() != nil {
|
if v.Load() != nil {
|
||||||
t.Fatal("expected nil")
|
t.Fatal("expected nil")
|
||||||
}
|
}
|
||||||
if v.IsNil() {
|
if !v.IsNil() {
|
||||||
t.Fatal("expected true")
|
t.Fatal("expected true")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ func TestClone(t *testing.T) {
|
||||||
if !reflect.DeepEqual(k, cl) {
|
if !reflect.DeepEqual(k, cl) {
|
||||||
t.Errorf("Clone() = %v, want %v", cl, k)
|
t.Errorf("Clone() = %v, want %v", cl, k)
|
||||||
}
|
}
|
||||||
cl.With("new")
|
cl = cl.With("new")
|
||||||
if cl == k {
|
if cl == k {
|
||||||
t.Error("Clone() returns same pointer")
|
t.Error("Clone() returns same pointer")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue