tests: Add testcase for str.center().

This commit is contained in:
Paul Sokolovsky 2016-05-22 00:18:53 +03:00
parent 1b5abfcaae
commit 53bac8e869
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
try:
str.center
except:
import sys
print("SKIP")
sys.exit()
print("foo".center(0))
print("foo".center(1))
print("foo".center(3))
print("foo".center(4))
print("foo".center(5))
print("foo".center(6))
print("foo".center(20))