Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_fail_on_empty_ground_truth(self):
for method in [
jiwer.wer,
jiwer.wil,
jiwer.wip,
jiwer.mer,
jiwer.compute_measures,
]:
def callback():
method("", "test")
self.assertRaises(ValueError, callback)