Changes in python/tests/test_note2midi.py [4afeac2:e9a4402]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/tests/test_note2midi.py
r4afeac2 re9a4402 4 4 from __future__ import unicode_literals 5 5 6 from aubio import note2midi, freq2note 6 from aubio import note2midi, freq2note, note2freq 7 7 from nose2.tools import params 8 8 import unittest … … 120 120 self.assertEqual("A4", freq2note(439)) 121 121 122 class note2freq_simple_test(unittest.TestCase): 123 124 def test_note2freq(self): 125 " make sure note2freq('A3') == 220" 126 self.assertEqual(220, note2freq("A3")) 127 128 def test_note2freq_under(self): 129 " make sure note2freq(A4) == 440" 130 self.assertEqual(440, note2freq("A4")) 131 122 132 if __name__ == '__main__': 123 133 import nose2
Note: See TracChangeset
for help on using the changeset viewer.