(self)
| 102 | self.assertTrue(Note("D").measure(Note("C")) == -2) |
| 103 | |
| 104 | def test_to_shorthand(self): |
| 105 | self.assertTrue(Note("C-0").to_shorthand() == "C,,") |
| 106 | self.assertTrue(Note("C-2").to_shorthand() == "C") |
| 107 | self.assertTrue(Note("C-3").to_shorthand() == "c") |
| 108 | self.assertTrue(Note("C-4").to_shorthand() == "c'") |
| 109 | self.assertTrue(Note("C-9").to_shorthand() == "c''''''") |
| 110 | |
| 111 | def test_from_shorthand(self): |
| 112 | self.assertTrue(Note().from_shorthand("C,,") == Note("C-0")) |
nothing calls this directly
no test coverage detected