mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-27 11:31:06 +01:00
fix: tests
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user