aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 889a64c..d84ecea 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -62,8 +62,11 @@ mod tests {
"https://science.nasa.gov/news-article/black-hole-image-makes-history",
];
- let urls = get_urls_from_pdf("testdata/Alice's Adventures in Wonderland.pdf");
+ let urls = get_urls_from_pdf("testdata/Alice's Adventures in Wonderland.pdf").unwrap();
- assert_eq!(expected, urls.unwrap());
+ // Allow URLs to be out of order.
+ for url in expected {
+ assert!(urls.contains(&url.to_owned()));
+ }
}
}