Revert "fix: err code 迁移到各自的包下 (#65)" (#66)

This reverts commit ef397cab50.
This commit is contained in:
libin
2024-04-03 10:46:39 +08:00
committed by GitHub
parent ef397cab50
commit b5654c2b4b
24 changed files with 108 additions and 123 deletions

View File

@@ -1,6 +1,7 @@
package jsonUtil
import (
"github.com/jefferyjob/go-easy-utils/v2"
"testing"
)
@@ -30,8 +31,8 @@ func TestToInt64(t *testing.T) {
{complex64(1 + 2i), 1, nil},
{complex128(1 + 2i), 1, nil},
{nil, 0, nil},
{"not a number", 0, ErrSyntax},
{make(chan int), 0, ErrType},
{"not a number", 0, go_easy_utils.ErrSyntax},
{make(chan int), 0, go_easy_utils.ErrType},
}
for _, tt := range tests {