def test_duration_to_lily_1(self): # Simple things self.assertEqual(functions.duration_to_lily(duration.Duration(1.0)), '4')
def test_duration_to_lily_4(self): self.assertEqual(functions.duration_to_lily(duration.Duration(3.0)), '2.')
def test_duration_to_lily_20(self): with pytest.raises(problems.ImpossibleToProcessError): functions.duration_to_lily(duration.Duration(0.01268128))
def test_duration_to_lily_24(self): expected = u"16." actual = functions.duration_to_lily(duration.Duration(0.375)) self.assertEqual(actual, expected)
def test_duration_to_lily_15(self): self.assertEqual(functions.duration_to_lily(duration.Duration(3.75)), '2...')
def test_duration_to_lily_22(self): # tuplet component--should work self.assertEqual( functions.duration_to_lily(duration.Duration(0.16666666), True), '16')
def test_duration_to_lily_11(self): self.assertEqual(functions.duration_to_lily(duration.Duration(0.0625)), '64')
def test_duration_to_lily_11(self): self.assertEqual(functions.duration_to_lily(duration.Duration(0.0625)), '64')
def test_duration_to_lily_9(self): # Same as above, but with known_tuplet==True... all results should be the same. self.assertEqual(functions.duration_to_lily(duration.Duration(1.0)), '4')
def test_duration_to_lily_10(self): self.assertEqual(functions.duration_to_lily(duration.Duration(16.0)), '\\longa')
def test_duration_to_lily_4(self): self.assertEqual(functions.duration_to_lily(duration.Duration(3.0)), '2.')
def test_duration_to_lily_1(self): # Simple things self.assertEqual(functions.duration_to_lily(duration.Duration(1.0)), '4')
def test_duration_to_lily_25(self): expected = u"1" actual = functions.duration_to_lily(duration.DurationTuple('whole', 0, 4.0)) self.assertEqual(actual, expected)
def test_duration_to_lily_9(self): # Same as above, but with known_tuplet==True... all results should be the same. self.assertEqual(functions.duration_to_lily(duration.Duration(1.0)), '4')
def test_duration_to_lily_13(self): self.assertEqual(functions.duration_to_lily(duration.Duration(0.1875)), '32.')
def test_duration_to_lily_10(self): self.assertEqual(functions.duration_to_lily(duration.Duration(16.0)), '\\longa')
def test_duration_to_lily_15(self): self.assertEqual(functions.duration_to_lily(duration.Duration(3.75)), '2...')
def test_duration_to_lily_13(self): self.assertEqual(functions.duration_to_lily(duration.Duration(0.1875)), '32.')
def test_duration_to_lily_16(self): self.assertEqual(functions.duration_to_lily(duration.Duration(0.12109375)), '64....')
def test_duration_to_lily_16(self): self.assertEqual( functions.duration_to_lily(duration.Duration(0.12109375)), '64....')
def test_duration_to_lily_22(self): # tuplet component--should work self.assertEqual(functions.duration_to_lily(duration.Duration(0.16666666), True), '16')
def test_duration_to_lily_24(self): expected = u"16." actual = functions.duration_to_lily(duration.Duration(0.375)) self.assertEqual(actual, expected)
def test_duration_to_lily_19(self): with pytest.raises(problems.ImpossibleToProcessError): functions.duration_to_lily(duration.Duration(25.0))