diff options
Diffstat (limited to 'Tests/misc/textTools_test.py')
-rw-r--r-- | Tests/misc/textTools_test.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Tests/misc/textTools_test.py b/Tests/misc/textTools_test.py index f83abf91..f28ca211 100644 --- a/Tests/misc/textTools_test.py +++ b/Tests/misc/textTools_test.py @@ -2,8 +2,8 @@ from fontTools.misc.textTools import pad def test_pad(): - assert len(pad(b'abcd', 4)) == 4 - assert len(pad(b'abcde', 2)) == 6 - assert len(pad(b'abcde', 4)) == 8 - assert pad(b'abcdef', 4) == b'abcdef\x00\x00' - assert pad(b'abcdef', 1) == b'abcdef' + assert len(pad(b"abcd", 4)) == 4 + assert len(pad(b"abcde", 2)) == 6 + assert len(pad(b"abcde", 4)) == 8 + assert pad(b"abcdef", 4) == b"abcdef\x00\x00" + assert pad(b"abcdef", 1) == b"abcdef" |