| ... | ... | @@ -407,6 +407,20 @@ test "base64 url_safe_no_pad" { |
| 407 | 407 | try comptime testAllApis(url_safe_no_pad, "comptime", "Y29tcHRpbWU"); |
| 408 | 408 | } |
| 409 | 409 | |
| 410 | test "base64 standard_no_pad" { |
| 411 | @setEvalBranchQuota(8000); |
| 412 | try testAllApis(standard_no_pad, "f", "Zg"); |
| 413 | try comptime testAllApis(standard_no_pad, "comptime", "Y29tcHRpbWU"); |
| 414 | try testError(standard_no_pad, "Zg==", error.InvalidCharacter); |
| 415 | } |
| 416 | |
| 417 | test "base64 url_safe" { |
| 418 | @setEvalBranchQuota(8000); |
| 419 | try testAllApis(url_safe, "f", "Zg=="); |
| 420 | try comptime testAllApis(url_safe, "comptime", "Y29tcHRpbWU="); |
| 421 | try testError(url_safe, "Zg", error.InvalidPadding); |
| 422 | } |
| 423 | |
| 410 | 424 | fn testBase64() !void { |
| 411 | 425 | const codecs = standard; |
| 412 | 426 | |