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

add unit tests for Note.oct and String.asNote #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aspiers
Copy link
Contributor

@aspiers aspiers commented Oct 21, 2017

I propose that we consider adding unit tests for wslib. This would help eliminate uncertainty around correct behaviour, like the case described in #11.

This pull request demonstrates an example of how to do this, which could serve as a starting point for other unit tests.

Note: The tests added here for Note.oct fail, serving as a test case for #11.

@aspiers aspiers changed the title add unit test for String.asNote add unit tests for Note.oct and String.asNote Oct 21, 2017
Adam Spiers added 2 commits October 21, 2017 20:38
This should serve as a starting point for other unit tests.
These tests currently fail due to String.getOctave
not respecting accidentals (see supercollider-quarks#11).
@woutersnoei
Copy link
Contributor

If you don't mind I'd like to wait with this one, as I guess it requires the UnitTest quark in older versions of SC. I don't suppose there are ways to do this without dependency on the UnitTest class, right?

@aspiers
Copy link
Contributor Author

aspiers commented Apr 4, 2018

I can't think of any way which makes sense, unfortunately 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants