Skip to content

Commit

Permalink
fixed go1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
hedzr committed Dec 13, 2023
1 parent 165a401 commit 55b2e95
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions join_go1.11_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,4 @@ func TestJoinErrorsStdFormatGo111(t *testing.T) {
} else {
t.Fatal("FAILED: expecting err is err2")
}

err3 := fmt.Errorf("error3: %w", err)
fmt.Printf("%T, %v\n", err3, v3.Unwrap(err3))

if v3.Is(err3, err1) {
t.Log("err3 is err1")
} else {
t.Fatal("FAILED: expecting err3 is err1")
}

if v3.Is(err3, err2) {
t.Log("err3 is err2")
} else {
t.Fatal("FAILED: expecting err3 is err2")
}

if !v3.Is(err2, err3) {
t.Log("err2 isn't err3")
} else {
t.Fatal("FAILED: expecting err2 is err3")
}
}

0 comments on commit 55b2e95

Please sign in to comment.