Skip to content

Commit 53bac8e

Browse files
committed
tests: Add testcase for str.center().
1 parent 1b5abfc commit 53bac8e

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/basics/string_center.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
try:
2+
str.center
3+
except:
4+
import sys
5+
print("SKIP")
6+
sys.exit()
7+
8+
print("foo".center(0))
9+
print("foo".center(1))
10+
print("foo".center(3))
11+
print("foo".center(4))
12+
print("foo".center(5))
13+
print("foo".center(6))
14+
print("foo".center(20))

0 commit comments

Comments
 (0)