I created metadata.epub in Sigil that has some tricky things like funny (XML) characters, multiple authors, and lots (and lots!) of contributors. It has no cover, which seems to cause some problems.
I replaced the -author method with -authors, which returns an array. The caller has to do the joining with commas - the NSArray category added earlier is easily used for this.
More tests are added, and they all pass.
The unit tests seem actually useful - they detected the broken XPath query leaving empty authors.
I created metadata.epub in Sigil that has some tricky things like funny (XML) characters, multiple authors, and lots (and lots!) of contributors. It has no cover, which seems to cause some problems.
I replaced the -author method with -authors, which returns an array. The caller has to do the joining with commas - the NSArray category added earlier is easily used for this.
More tests are added, and they all pass.
The unit tests seem actually useful - they detected the broken XPath query leaving empty authors.