xonsh/tests/test_lib/test_itertools.py
Christopher J. Wright 7a2fe402cd remove dict edge case
2019-09-11 12:14:48 -04:00

14 lines
241 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",)