diff --git a/tests/test_util.py b/tests/test_util.py index 88743b03..548006c4 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -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)