Sign in
fuchsia
/
third_party
/
fonttools
/
refs/heads/upstream/subsetbase
/
.
/
Tests
/
misc
/
textTools_test.py
blob: f28ca211aa0955528ba3183811809a161500e553 [
file
] [
log
] [
blame
]
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"