Skip to content

Commit

Permalink
add ext test case
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Jan 7, 2024
1 parent f8f0dd3 commit a7be3d4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions x/data/iri_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,16 @@ func TestContentHash_Raw_ToIRI(t *testing.T) {
true,
"",
},
{
"ext bad characters",
ContentHash_Raw{
Hash: hash,
DigestAlgorithm: 2,
FileExtension: "jpg!",
},
true,
"",
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit a7be3d4

Please sign in to comment.