Permalink
Browse files

Add a test case for extracting URLs before newline.

  • Loading branch information...
1 parent 2909bc4 commit 2e3b34493ae4a79ee47c71a4b2443bb2c03e6dfb @keitaf keitaf committed Dec 1, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 extract.yml
View
@@ -418,6 +418,10 @@ tests:
text: "#test.com @test.com #http://test.com @http://test.com #t.co/abcde @t.co/abcde"
expected: []
+ - description: "Extract URL before newline"
+ text: "http://twitter.com\nhttp://example.com\nhttp://example.com/path\nexample.com/path\nt.co\nt.co/abcde"
+ expected: ["http://twitter.com", "http://example.com", "http://example.com/path", "example.com/path", "t.co/abcde"]
+
urls_with_indices:
- description: "Extract a URL"
text: "text http://google.com"

0 comments on commit 2e3b344

Please sign in to comment.