more numeric_score tests

This commit is contained in:
Shish 2010-05-13 10:44:47 +01:00
parent 46ce762949
commit 629c03036c

View File

@ -16,6 +16,18 @@ class NumericScoreTest extends ShimmieWebTestCase {
$this->get_page("post/list/score=1/1"); $this->get_page("post/list/score=1/1");
$this->assert_title("Image $image_id: pbx"); $this->assert_title("Image $image_id: pbx");
$this->get_page("post/list/score>0/1");
$this->assert_title("Image $image_id: pbx");
$this->get_page("post/list/score>-5/1");
$this->assert_title("Image $image_id: pbx");
$this->get_page("post/list/-score>5/1");
$this->assert_title("Image $image_id: pbx");
$this->get_page("post/list/-score<-5/1");
$this->assert_title("Image $image_id: pbx");
# test search by vote # test search by vote
$this->get_page("post/list/upvoted_by=test/1"); $this->get_page("post/list/upvoted_by=test/1");
$this->assert_title("Image $image_id: pbx"); $this->assert_title("Image $image_id: pbx");