This commit is contained in:
2018-09-02 04:43:21 -04:00
parent e4d35ecd85
commit ad4df34433
2 changed files with 11 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
tests:
pytest
+9
View File
@@ -21,3 +21,12 @@ def test_tone_addition():
Tone.from_string("C4", system=pytheory.SYSTEMS["western"]).add(12).full_name
== "C5"
)
def test_tone_subtraction():
assert (
Tone.from_string("C5", system=pytheory.SYSTEMS["western"])
.subtract(12)
.full_name
== "C4"
)