Skip to content

Commit

Permalink
test: Tighten Expected Time Limits of get_*_candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
graphemecluster committed Jul 25, 2024
1 parent 362a2b9 commit 75f37d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_tojyutping.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def test_get_jyutping_text_performance(self):
self.performance_test(lambda: ToJyutping.get_jyutping_text(self.test_string))

def test_get_jyutping_candidates_performance(self):
self.performance_test(lambda: ToJyutping.get_jyutping_candidates(self.test_string), expected_time=30)
self.performance_test(lambda: ToJyutping.get_jyutping_candidates(self.test_string))

def test_get_ipa_list_performance(self):
self.performance_test(lambda: ToJyutping.get_ipa_list(self.test_string))
Expand All @@ -138,7 +138,7 @@ def test_get_ipa_text_performance(self):
self.performance_test(lambda: ToJyutping.get_ipa_text(self.test_string))

def test_get_ipa_candidates_performance(self):
self.performance_test(lambda: ToJyutping.get_ipa_candidates(self.test_string), expected_time=30)
self.performance_test(lambda: ToJyutping.get_ipa_candidates(self.test_string))

if __name__ == '__main__':
unittest.main(verbosity=2)

0 comments on commit 75f37d4

Please sign in to comment.