circuitpython/tests/basics/string_center.py

15 lines
239 B
Python
Raw Normal View History

2016-05-21 17:18:53 -04:00
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))