Permalink
Browse files

add a test for nil keywords NPE fix

  • Loading branch information...
1 parent 3bfef90 commit c34e427f591a18bb8b686f60e46bb1e9b75861ef @cap10morgan cap10morgan committed Oct 7, 2013
Showing with 4 additions and 0 deletions.
  1. BIN resources/pdf/blank.pdf
  2. +4 −0 test/camelot/test/metadata.clj
View
Binary file not shown.
@@ -26,6 +26,10 @@
:modified nil
:producer nil}))))
+(deftest get-metadata-handles-nil-keywords
+ (let [filename "resources/pdf/blank.pdf"]
+ (is (:keywords (get-metadata filename) []))))
+
(deftest set-metadata-saves-metadata-to-pddocument
(let [metadata {:author "Joe Bloggs"
:title "Hello World"

0 comments on commit c34e427

Please sign in to comment.