mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +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 {
|
||||
t.Fatal("expected nil")
|
||||
}
|
||||
if v.IsNil() {
|
||||
if !v.IsNil() {
|
||||
t.Fatal("expected true")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ func TestClone(t *testing.T) {
|
|||
if !reflect.DeepEqual(k, cl) {
|
||||
t.Errorf("Clone() = %v, want %v", cl, k)
|
||||
}
|
||||
cl.With("new")
|
||||
cl = cl.With("new")
|
||||
if cl == k {
|
||||
t.Error("Clone() returns same pointer")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue