|
|
@@ -47,13 +47,3 @@ func TestCause(t *testing.T) {
|
|
|
t.Errorf("expected %s but not", "origin")
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-func TestCodeExt(t *testing.T) {
|
|
|
- origin := New("record not found")
|
|
|
- NewNotFound(100101, "用户不存在")
|
|
|
- out := WithCode(origin, 100101)
|
|
|
- _, _, ext := Ext(out)
|
|
|
- if ext != "用户不存在" {
|
|
|
- t.Errorf("expected %s but not", "用户不存在")
|
|
|
- }
|
|
|
-}
|