Skip to content

Commit

Permalink
Add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
osamingo committed Feb 9, 2021
1 parent 65dac3c commit 71cfac6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kenall_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func TestClient_Get(t *testing.T) {
wantJISX0402 string
}{
"Normal case": {token: "opencollector", postalcode: "1008105", wantError: nil, wantJISX0402: "13101"},
"Invalid postalcode": {token: "opencollector", postalcode: "alphabet", wantError: kenall.ErrInvalidArgument, wantJISX0402: ""},
"Not found": {token: "opencollector", postalcode: "0000000", wantError: kenall.ErrNotFound, wantJISX0402: ""},
"Unauthorized": {token: "bad_token", postalcode: "0000000", wantError: kenall.ErrUnauthorized, wantJISX0402: ""},
"Forbidden": {token: "opencollector", postalcode: "4030000", wantError: kenall.ErrForbidden, wantJISX0402: ""},
Expand Down

0 comments on commit 71cfac6

Please sign in to comment.