]> 127.0.0.1 Git - part/.git/commitdiff
1 v0.28.20240325172911
authorqydysky <qydysky@foxmail.com>
Mon, 25 Mar 2024 17:23:45 +0000 (01:23 +0800)
committerqydysky <qydysky@foxmail.com>
Mon, 25 Mar 2024 17:23:45 +0000 (01:23 +0800)
errors/errors_test.go

index 8abffcafa7f951c7892584034d2b5f1928ef3c0b..7dd8222cb6925584030181d021e9c2f0aadbb61d 100644 (file)
@@ -11,21 +11,21 @@ func TestXxx(t *testing.T) {
 
        err = New("r0", "a0")
 
-       if !Catch(err, "a0") {
+       if !Catch(err, "r0") {
                t.Fail()
        }
 
-       if Catch(err, "a1") {
+       if Catch(err, "r1") {
                t.Fail()
        }
 
        err = Grow(err, New("r1", "a1"))
 
-       if !Catch(err, "a0") {
+       if !Catch(err, "r0") {
                t.Fail()
        }
 
-       if !Catch(err, "a1") {
+       if !Catch(err, "r1") {
                t.Fail()
        }
 }