tests: Add testcase for str.center().
This commit is contained in:
parent
1b5abfcaae
commit
53bac8e869
|
@ -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))
|
Loading…
Reference in New Issue