diff --git a/vstring/base64_test.go b/vstring/base64_test.go index b7efef8..cbb7479 100644 --- a/vstring/base64_test.go +++ b/vstring/base64_test.go @@ -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{ @@ -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{