case_name
case_name
The suffix that all TestCase methods need to have to be called by run()
Code used to test the Persian stemming algorithm. The inputs for the algorithm came from the sample text file for the Hamshahri Collection found at http://ece.ut.ac.ir/DBRG/Hamshahri/download.html The stemmed results come from the Java program that the PHP stemmer is based off of at http://members.unine.ch/jacques.savoy/clef/persianStemmerArabic.txt
assertEqual(mixed $x, mixed $y, string $description = "")
Checks that $x and $y are the same, the result of the test is added to $this->test_case_results
mixed | $x | a first item to compare |
mixed | $y | a second item to compare |
string | $description | information about this test subcase |
assertNotEqual(mixed $x, mixed $y, string $description = "")
Checks that $x and $y are not the same, the result of the test is added to $this->test_case_results
mixed | $x | a first item to compare |
mixed | $y | a second item to compare |
string | $description | information about this test subcase |
stemmerTestCase()
Tests whether the stem function for the Persian stemming algorithm stems words according to the rules of stemming. The function tests stem by calling stem with the words in $test_words and compares the results with the stem words in $stem_words
$test_words is an array containing a set of words in French provided in the snowball web page $stem_words is an array containing the stems for words in $test_words