MCPcopy Create free account
hub / github.com/bspaans/python-mingus / test_to_shorthand

Method test_to_shorthand

tests/unit/containers/test_note.py:104–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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"))

Callers

nothing calls this directly

Calls 2

NoteClass · 0.90
to_shorthandMethod · 0.80

Tested by

no test coverage detected