tests: Add testcase for str.center().
This commit is contained in:
parent
1b5abfcaae
commit
53bac8e869
14
tests/basics/string_center.py
Normal file
14
tests/basics/string_center.py
Normal 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))
|
Loading…
x
Reference in New Issue
Block a user