Skip to content

Commit

Permalink
Update test-suites.
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-plus committed Mar 29, 2024
1 parent dfd093a commit c043545
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/data/test_subtitle.lrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[00:00.00] 你好
[00:00.00] 你好,你好...你好!你好.
[00:03.00] 你好
[00:05.00]
[00:06.00] 好好好好好好好好好好好好好好好好好好好好好好好好
Expand Down
4 changes: 2 additions & 2 deletions tests/test_subtitle.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_save_to_srt(self):

def test_get_length(self):
subtitle = self.subtitle
self.assertEqual(len(subtitle), 8)
self.assertEqual(len(subtitle), 9)

def test_get_texts(self):
subtitle = self.subtitle
Expand All @@ -66,7 +66,7 @@ def test_set_texts_edge_case(self):

def test_set_texts_edge_case_2(self):
subtitle = self.subtitle
subtitle.set_texts([''] * 8, lang='en')
subtitle.set_texts([''] * 9, lang='en')
self.assertEqual(subtitle.lang, 'en')
self.assertEqual(subtitle.segments[0].text, '')
self.assertEqual(subtitle.segments[1].text, '')

0 comments on commit c043545

Please sign in to comment.