Showing the changes to python/tests (1 of 1 file). Show all
Unified · Split
| @@ -1,6 +1,8 @@ | |||
| 1 | #! /usr/bin/env python | 1 | #! /usr/bin/env python |
| 2 | # -*- coding: utf-8 -*- | 2 | # -*- coding: utf-8 -*- |
| 3 | 3 | ||
| 4 | from __future__ import unicode_literals | ||
| 5 | |||
| 4 | from aubio import note2midi, freq2note | 6 | from aubio import note2midi, freq2note |
| 5 | import unittest | 7 | import unittest |
| 6 | 8 | ||
| @@ -14,13 +16,13 @@ list_of_known_notes = ( · 7 unmodified lines | |||
| 14 | ( 'A4', 69 ), | 16 | ( 'A4', 69 ), |
| 15 | ( 'A#4', 70 ), | 17 | ( 'A#4', 70 ), |
| 16 | ( 'Bb4', 70 ), | 18 | ( 'Bb4', 70 ), |
| 17 | ( u'B♭4', 70 ), | 19 | ( 'B♭4', 70 ), |
| 18 | ( 'G8', 115 ), | 20 | ( 'G8', 115 ), |
| 19 | ( u'G♯8', 116 ), | 21 | ( 'G♯8', 116 ), |
| 20 | ( 'G9', 127 ), | 22 | ( 'G9', 127 ), |
| 21 | ( u'G\udd2a2', 45 ), | 23 | ( 'G\udd2a2', 45 ), |
| 22 | ( u'B\ufffd2', 45 ), | 24 | ( 'B\ufffd2', 45 ), |
| 23 | ( u'A♮2', 45 ), | 25 | ( 'A♮2', 45 ), |
| 24 | ) | 26 | ) |
| 25 | 27 | ||
| 26 | class note2midi_good_values(unittest.TestCase): | 28 | class note2midi_good_values(unittest.TestCase): |