mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
add test for filename length
This commit is contained in:
parent
a536bb7796
commit
7e8f946f58
@ -10,3 +10,6 @@ class TestUtil(unittest.TestCase):
|
||||
self.assertEqual(legitimize("1*2", os="mac"), "1*2")
|
||||
self.assertEqual(legitimize("1*2", os="windows"), "1-2")
|
||||
self.assertEqual(legitimize("1*2", os="wsl"), "1-2")
|
||||
|
||||
# make sure filename + .ext <= 255 bytes
|
||||
self.assertTrue(len(legitimize("文件名"*200).encode('u8')) <= 250)
|
||||
|
Loading…
Reference in New Issue
Block a user