From da31ee8bfc859fdd4aa3f3ec6a834d73ae832e2a Mon Sep 17 00:00:00 2001 From: Ian Date: Fri, 10 Nov 2023 11:43:58 -0800 Subject: [PATCH] update --- binding/python/test_leopard.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/binding/python/test_leopard.py b/binding/python/test_leopard.py index 27290b58..fd834cfb 100644 --- a/binding/python/test_leopard.py +++ b/binding/python/test_leopard.py @@ -32,6 +32,7 @@ def _validate_metadata( words: Sequence[Leopard.Word], expected_words: Sequence[Leopard.Word], enable_diarization: bool = False): + self.assertEqual(len(words), len(expected_words)) for i in range(len(words)): self.assertEqual(words[i].word, expected_words[i].word) self.assertAlmostEqual(words[i].start_sec, expected_words[i].start_sec, delta=0.01) @@ -208,6 +209,7 @@ def test_diarization_multiple_speakers( enable_diarization=True) _, words = o.process_file(os.path.join(self._audio_directory, audio_file)) + self.assertEqual(len(words), len(expected_words)) for i in range(len(words)): self.assertEqual(words[i].word, expected_words[i].word) self.assertEqual(words[i].speaker_tag, expected_words[i].speaker_tag)