Beispiel #1
0
 def test_discrete_below_0(self):
     d = FleschKincaidDifficultyEstimator.discrete_difficulty(-10)
     self.assertEqual(d, 'HARD')
Beispiel #2
0
 def test_discrete_80(self):
     d = FleschKincaidDifficultyEstimator.discrete_difficulty(80)
     self.assertEqual(d, 'MEDIUM')
Beispiel #3
0
 def test_discrete_between_80_and_50(self):
     d = FleschKincaidDifficultyEstimator.discrete_difficulty(60)
     self.assertEqual(d, 'MEDIUM')
Beispiel #4
0
 def test_discrete_above_80(self):
     d = FleschKincaidDifficultyEstimator.discrete_difficulty(100)
     self.assertEqual(d, 'EASY')