Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #25 from garu/master
Browse files Browse the repository at this point in the history
Empty tweets are invalid
  • Loading branch information
Keita Fujii committed Jan 3, 2012
2 parents af6224c + b46872f commit 9ca1db4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions validate.yml
Expand Up @@ -17,6 +17,10 @@ tests:
text: "のののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののののの"
expected: true

- description: "Invalid Tweet: no characters (empty)"
text: ""
expected: false

- description: "Invalid Tweet: 141 characters"
text: "A lie gets halfway around the world before the truth has a chance to get its pants on. --- Winston Churchill (1874-1965) http://bit.ly/dJpywL"
expected: false
Expand Down

0 comments on commit 9ca1db4

Please sign in to comment.