mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-11-01 10:14:09 +09:00
[utils] lookup_unit_table: Match word boundary instead of end of string
This commit is contained in:
1 parent
0d769bcb78
commit
782b1b5bd1
2 files changed
+3
-1
No files matched your search
@@ -702,6 +702,8 @@ class TestUtil(unittest.TestCase):
|
||||
self.assertEqual(parse_count('1.000'), 1000)
|
||||
self.assertEqual(parse_count('1.1k'), 1100)
|
||||
self.assertEqual(parse_count('1.1kk'), 1100000)
|
||||
self.assertEqual(parse_count('1.1kk '), 1100000)
|
||||
self.assertEqual(parse_count('1.1kk views'), 1100000)
|
||||
|
||||
def test_version_tuple(self):
|
||||
self.assertEqual(version_tuple('1'), (1,))
|
||||
|
||||
Reference in new issue
Block a user