Beispiel #1
0
 def test_on_erroneous_input_make_no_recommendation(self):
     expected_output = "NO SUGGESTION"
     input_string = "" 
     output = recommend_correction(input_string, self.fl_index)
     assert output == expected_output, output
     input_string = "sheeple"
     output = recommend_correction(input_string, self.fl_index)
     assert output == expected_output, output
Beispiel #2
0
 def test_expect_sheeppen(self) :
     assert recommend_correction("sheeppan", self.fl_index) == 'sheeppen'
Beispiel #3
0
 def test_expect_conspiracy(self) :
     assert recommend_correction("CUNsperrICY", self.fl_index) == 'conspiracy'
Beispiel #4
0
 def test_expect_wake(self) :   
     assert recommend_correction("weke", self.fl_index) == 'wake'
Beispiel #5
0
 def test_expect_people(self) :
     assert recommend_correction("peeple", self.fl_index) == 'people'