micropython/tests/basics/string_center.py

14 lines
230 B
Python
Raw Normal View History

2016-05-21 22:18:53 +01:00
try:
str.center
except:
print("SKIP")
raise SystemExit
2016-05-21 22:18:53 +01:00
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))