Skip to content

Commit 4f358e8

Browse files
author
czheo
committed
bump version to 0.3.0
1 parent 6a3b07f commit 4f358e8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="syntax_sugar",
5-
version="0.2.3",
5+
version="0.3.0",
66
url='https://github.com/czheo/syntax_sugar_python',
77
description="add syntactic sugar to Python",
88
author="czheo",

tests/test_iter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
from pytest import raises
22
from syntax_sugar.iter import Range, Iterator
3+
from syntax_sugar.infix import take, to, INF
4+
from itertools import product
5+
36

47
def test_range_bad_step():
58
range_obj = Range(1, 2)
@@ -21,3 +24,4 @@ def test_iterator():
2124
assert list(Iterator(Range(1, 10))) == list(range(1, 11))
2225
assert list(Iterator(range(1, 10))) == list(range(1, 10))
2326
assert list(Iterator([1,2,3,4])) == [1,2,3,4]
27+
assert list((1 /to/ INF) * (2 /to/ 4) /take/ 5) == list(product([1,2,3], [2,3,4]))[:5]

0 commit comments

Comments
 (0)