bro
This commit is contained in:
1 parent
de41a02749
commit
9af09cebd3
764 files changed
+54218
-78859
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import unittest
|
||||
|
||||
|
||||
import pygame
|
||||
|
||||
|
||||
@@ -209,7 +210,7 @@ class MidiOutputTest(unittest.TestCase):
|
||||
out.pitch_bend(-10001, 1)
|
||||
self.assertEqual(
|
||||
str(cm.exception),
|
||||
"Pitch bend value must be between -8192 and +8191, not -10001.",
|
||||
"Pitch bend value must be between " "-8192 and +8191, not -10001.",
|
||||
)
|
||||
with self.assertRaises(ValueError) as cm:
|
||||
out.pitch_bend(10665, 2)
|
||||
@@ -438,7 +439,7 @@ class MidiModuleNonInteractiveTest(unittest.TestCase):
|
||||
|
||||
def test_conversions(self):
|
||||
"""of frequencies to midi note numbers and ansi note names."""
|
||||
from pygame.midi import frequency_to_midi, midi_to_ansi_note, midi_to_frequency
|
||||
from pygame.midi import frequency_to_midi, midi_to_frequency, midi_to_ansi_note
|
||||
|
||||
self.assertEqual(frequency_to_midi(27.5), 21)
|
||||
self.assertEqual(frequency_to_midi(36.7), 26)
|
||||
|
||||
Reference in new issue
Block a user