<s> from funcy . cross import xrange <EOL> from funcy . types import * <EOL> def test_iterable ( ) : <EOL> assert iterable ( [ ] ) <EOL> assert iterable ( { } ) <EOL> assert iterable ( '<STR_LIT:abc>' ) <EOL> assert iterable ( iter ( [ ] ) ) <EOL> assert iterable ( x for x in range ( <NUM_LIT:10> ) ) <EOL> assert iterable ( xrange ( <NUM_LIT:10> ) ) <EOL> assert not iterable ( <NUM_LIT:1> ) <EOL> def test_is_iter ( ) : <EOL> assert is_iter ( iter ( [ ] ) ) <EOL> assert is_iter ( x for x in range ( <NUM_LIT:10> ) ) <EOL> assert not is_iter ( [ ] ) <EOL> assert not is_iter ( xrange ( <NUM_LIT:10> ) ) </s>
