We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59e8574 commit 99e20dbCopy full SHA for 99e20db
digest_test.go
@@ -86,6 +86,11 @@ func TestParseDigest(t *testing.T) {
86
input: "sha512:abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789",
87
err: ErrDigestInvalidLength,
88
},
89
+ {
90
+ // too short (from different algorithm)
91
+ input: "blake3:abcdef0123456789abcdef0123456789abcdef01234",
92
+ err: ErrDigestInvalidLength,
93
+ },
94
{
95
input: "foo:d41d8cd98f00b204e9800998ecf8427e",
96
err: ErrDigestUnsupported,
0 commit comments