aboutsummaryrefslogtreecommitdiffstats
path: root/skate/schema_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'skate/schema_test.go')
-rw-r--r--skate/schema_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/skate/schema_test.go b/skate/schema_test.go
index cfffced..cb1cf83 100644
--- a/skate/schema_test.go
+++ b/skate/schema_test.go
@@ -267,6 +267,20 @@ func TestReleaseToUnstructured(t *testing.T) {
{r: &Release{Volume: "12", Issue: "X", ReleaseYearValue: "1999"}, s: "vol. 12, no. X, 1999"},
{r: &Release{Volume: "12", ContainerName: "Solar",
ReleaseYearValue: "1999"}, s: "Solar, vol. 12, 1999"},
+ {r: &Release{ExtIDs: struct {
+ Arxiv string `json:"arxiv,omitempty"`
+ Core string `json:"core,omitempty"`
+ DOI string `json:"doi,omitempty"`
+ ISBN []string `json:"isbn,omitempty"` // should be isbn13
+ Jstor string `json:"jstor,omitempty"`
+ OLID string `json:"olid,omitempty"`
+ PMCID string `json:"pmcid,omitempty"`
+ PMID string `json:"pmid,omitempty"`
+ WikidataQID string `json:"wikidata_qid,omitempty"`
+ }{
+ DOI: "10.1234/1234",
+ }, Volume: "12", ContainerName: "Solar",
+ ReleaseYearValue: "1999"}, s: "Solar, vol. 12, 1999, 10.1234/1234"},
{r: &Release{
Title: "ABC",
}, s: "ABC"},