mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 17:30:59 +01:00
14 lines
240 B
Python
14 lines
240 B
Python
![]() |
from xonsh.lib.itertools import as_iterable
|
||
|
|
||
|
|
||
|
def test_single():
|
||
|
assert as_iterable(1) == (1,)
|
||
|
|
||
|
|
||
|
def test_list():
|
||
|
assert as_iterable([1, 2, 3]) == [1, 2, 3]
|
||
|
|
||
|
|
||
|
def test_string():
|
||
|
assert as_iterable("my string") == ("my string",)
|