Skip to content

Commit

Permalink
add init test
Browse files Browse the repository at this point in the history
  • Loading branch information
fukuball committed Apr 30, 2015
1 parent 1f753a1 commit 3e45fae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/JiebaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ class JiebaTest extends PHPUnit_Framework_TestCase

public function testJiebaInit()
{
Jieba::init();
$this->assertGreaterThan(0, Jieba::$total);
}

public function testFinalsegInit()
{
Finalseg::init();
$array_count = count(Finalseg::$prob_start);
$this->assertEquals(4, $array_count);
}
Expand Down

0 comments on commit 3e45fae

Please sign in to comment.