More work on the tests...

This commit is contained in:
Dave Jones
2016-04-05 09:45:44 +01:00
parent 2a2e77051d
commit 3acf8a0d3a
12 changed files with 397 additions and 28 deletions

View File

@@ -16,7 +16,7 @@ try:
except ImportError:
pass
from itertools import count, cycle
from math import sin, cos, floor
from math import sin, cos, floor, radians
try:
from statistics import mean
except ImportError:
@@ -270,7 +270,7 @@ def sin_values():
If you require a wider range than 0 to 1, see :func:`scaled`.
"""
for d in cycle(range(360)):
yield sin(d)
yield sin(radians(d))
def cos_values():
@@ -292,5 +292,5 @@ def cos_values():
If you require a wider range than 0 to 1, see :func:`scaled`.
"""
for d in cycle(range(360)):
yield cos(d)
yield cos(radians(d))