Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
relearn
2014
Commits
21b07ac9
Commit
21b07ac9
authored
Jul 11, 2014
by
Thomas Levine
Browse files
?
parent
dbf27cb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
circles/polar/test_polar.py
0 → 100644
View file @
21b07ac9
import
math
import
nose.tools
as
n
import
polar
def
test_compose
():
rotations
=
2
observed
=
polar
.
compose_centered_plot
((
1000
,
2000
,
1400
,
3300
),
polar
.
angles
(
4
,
rotations
),
lambda
a
:
a
/
rotations
/
(
2
*
math
.
pi
))
expected
=
'PU;PD200,650,200,675,150,650,200,575,300,650,200,775,50,650,199,475;'
n
.
assert_equal
(
observed
,
expected
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment