jaketmp / ePub-quicklook

NOTE: Not working in Mojave and later! ePub quicklook and spotlight plugins for Mac OS X.
BSD 3-Clause "New" or "Revised" License
570 stars 58 forks source link

Add more tests and sample data #12

Closed chrisridd closed 12 years ago

chrisridd commented 12 years ago

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.

jaketmp commented 12 years ago

Great - I'll pull this in.

I'll have no reliable internet for the next couple of weeks alas - so this branch may hang for a while.