Skip to content

Commit

Permalink
add more tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
yata committed Dec 22, 2009
1 parent 8988155 commit b6b4d81
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Expand Up @@ -250,6 +250,9 @@
* twittering-mode.el (twittering-get-host-method-from-timeline-spec)
(twittering-get-timeline-spec): Add more timeline specification.

* test/test-twittering-mode.el (timeline-spec): add more tests for
timeline specification.

2009-12-20 Tadashi Matsuo <tad@mymail.twin.jp>

* test/test-twittering-mode.el (timeline-spec): add tests for
Expand Down
20 changes: 20 additions & 0 deletions test/test-twittering-mode.el
Expand Up @@ -159,9 +159,14 @@
(twittering-get-timeline-spec host method))))
(test-assert-ok (test-restore-timeline-spec "~"))
(test-assert-ok (test-restore-timeline-spec "@"))
(test-assert-ok (test-restore-timeline-spec "M"))
(test-assert-ok (test-restore-timeline-spec "-"))
(test-assert-ok (test-restore-timeline-spec "USER"))
(test-assert-ok (test-restore-timeline-spec "USER/LISTNAME"))
(test-assert-ok (test-restore-timeline-spec "H"))
(test-assert-ok (test-restore-timeline-spec "B"))
(test-assert-ok (test-restore-timeline-spec "T"))
(test-assert-ok (test-restore-timeline-spec "O"))

(test-assert-eq nil (twittering-get-host-method-from-timeline-spec ""))

Expand All @@ -171,6 +176,9 @@
(test-assert-ok
(test-restore-host-method
"twitter.com" "statuses/replies"))
(test-assert-ok
(test-restore-host-method
"twitter.com" "statuses/mentions"))
(test-assert-ok
(test-restore-host-method
"twitter.com" "statuses/public_timeline"))
Expand All @@ -180,6 +188,18 @@
(test-assert-ok
(test-restore-host-method
"api.twitter.com" "1/USER/lists/LISTNAME/statuses"))
(test-assert-ok
(test-restore-host-method
"api.twitter.com" "1/statuses/home_timeline"))
(test-assert-ok
(test-restore-host-method
"api.twitter.com" "1/statuses/retweeted_by_me"))
(test-assert-ok
(test-restore-host-method
"api.twitter.com" "1/statuses/retweeted_to_me"))
(test-assert-ok
(test-restore-host-method
"api.twitter.com" "1/statuses/retweets_of_me"))

(test-assert-string-equal
"USERNAME"
Expand Down

0 comments on commit b6b4d81

Please sign in to comment.