kopia lustrzana https://github.com/micropython/micropython
tests/basics/string_join.py: Add test case where argument is not iterable.
rodzic
7e480e8a30
commit
38c3778b27
|
@ -13,6 +13,11 @@ print(','.join('abc' for i in range(5)))
|
||||||
|
|
||||||
print(b','.join([b'abc', b'123']))
|
print(b','.join([b'abc', b'123']))
|
||||||
|
|
||||||
|
try:
|
||||||
|
''.join(None)
|
||||||
|
except TypeError:
|
||||||
|
print("TypeError")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
print(b','.join(['abc', b'123']))
|
print(b','.join(['abc', b'123']))
|
||||||
except TypeError:
|
except TypeError:
|
||||||
|
|
Ładowanie…
Reference in New Issue