Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for (and implement) universal coercion (for duration arguments) #168

Closed
trevorbaca opened this issue Oct 30, 2013 · 3 comments
Closed

Comments

@trevorbaca
Copy link
Member

trevorbaca commented Oct 30, 2013

From trevorb...@gmail.com on October 21, 2012 15:33:08

Every function in the public API to accept a duration argument should allow for reduced (n, d) style input.

All that is required to do this is a ...

  duration = abjad.Duration(duration)

... line at the head of the function.

The real trick here is writing some sort of script that can iterate all 1000 public functions and introspect the signatures of each for the presence of a 'duration' argument.

Original issue: http://code.google.com/p/abjad/issues/detail?id=167

@trevorbaca
Copy link
Member Author

Parameterized tests can now be written for this.

@trevorbaca
Copy link
Member Author

Still valid in May 2017.

trevorbaca added a commit that referenced this issue Jun 29, 2017
This closes #168, open since October 2013.
@trevorbaca
Copy link
Member Author

Done in 2.21.

trevorbaca added a commit that referenced this issue Jul 31, 2017
This closes #168, open since October 2013.
trevorbaca added a commit that referenced this issue Jul 31, 2017
This closes #168, open since October 2013.
trevorbaca added a commit that referenced this issue Jul 31, 2017
This closes #168, open since October 2013.
trevorbaca added a commit that referenced this issue Jul 31, 2017
This closes #168, open since October 2013.
trevorbaca added a commit that referenced this issue Jul 31, 2017
This closes #168, open since October 2013.
trevorbaca added a commit that referenced this issue Jul 31, 2017
This closes #168, open since October 2013.
trevorbaca added a commit that referenced this issue Jul 31, 2017
This closes #168, open since October 2013.
trevorbaca added a commit that referenced this issue Jul 31, 2017
This closes #168, open since October 2013.
trevorbaca added a commit that referenced this issue Jul 31, 2017
(Open since October 2013.)
trevorbaca added a commit that referenced this issue Jul 31, 2017
(Open since October 2013.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant