Skip to content

Commit

Permalink
Improve vstring.Base64 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SladeThe committed Oct 12, 2023
1 parent 6a2bfa2 commit 7a8596d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions vstring/base64_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,20 @@ func TestBase64Raw(t *testing.T) {
Value: "A?",
},
},
}, {
name: "invalid length",
args: args{
name: "data",
value: "A",
},
want: want{
stop: true,
err: yav.Error{
CheckName: "base64raw",
ValueName: "data",
Value: "A",
},
},
}, {
name: "wrong encoding 0",
args: args{
Expand Down Expand Up @@ -390,6 +404,20 @@ func TestBase64RawURL(t *testing.T) {
Value: "A?",
},
},
}, {
name: "invalid length",
args: args{
name: "data",
value: "A",
},
want: want{
stop: true,
err: yav.Error{
CheckName: "base64rawurl",
ValueName: "data",
Value: "A",
},
},
}, {
name: "wrong encoding 0",
args: args{
Expand Down

0 comments on commit 7a8596d

Please sign in to comment.