Test HTOA peak value against 0 (integer comparison)

Now whipper uses the absolute value of SoX's peak level as internal peak value.

Fixes #143.
This commit is contained in:
JoeLametta
2018-01-30 08:00:00 +00:00
parent a786c3e981
commit 00bf17082e
5 changed files with 16 additions and 13 deletions

View File

@@ -11,4 +11,4 @@ class PeakLevelTestCase(common.TestCase):
self.path = os.path.join(os.path.dirname(__file__), 'track.flac')
def testParse(self):
self.assertEquals(0.800018, sox.peak_level(self.path))
self.assertEquals(26215, sox.peak_level(self.path))