Skip to content

Commit

Permalink
add extra check for PURL.Listed attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ejstreet committed Feb 26, 2023
1 parent de8d5f6 commit 7e40c61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions omglol/purl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ func TestCreateAndDeletePersistentURL(t *testing.T) {
if u != nil {
t.Log(u.String())
validatePersistentURL(t, *u)
if u.Listed != false {
t.Error("Unlisted PURL should not have listed set to 'true'.")
}
} else {
t.Error("GetPersistentURL returned 'nil' when retrieving unlisted PURL.")
}
Expand All @@ -112,6 +115,9 @@ func TestCreateAndDeletePersistentURL(t *testing.T) {
if l != nil {
t.Log(l.String())
validatePersistentURL(t, *l)
if l.Listed != true {
t.Error("Listed PURL should not have listed set to 'false'.")
}
} else {
t.Error("GetPersistentURL returned 'nil' when retrieving listed PURL.")
}
Expand Down

0 comments on commit 7e40c61

Please sign in to comment.