fvec test: change order in assertEqual
authorPaul Brossier <piem@piem.org>
Sat, 3 Nov 2007 15:51:26 +0000 (16:51 +0100)
committerPaul Brossier <piem@piem.org>
Sat, 3 Nov 2007 15:51:26 +0000 (16:51 +0100)
tests/python/fvec.py

index 5159af931cde80960e55a5f9efbce56a0416acf6..98ad1cdc90b6a1934e7e33c57d665e94c0097e7f 100644 (file)
@@ -21,7 +21,7 @@ class fvec_test_case(unittest.TestCase):
     """ check new fvec elements are set to 0. """
     for index in range(buf_size):
       for channel in range(channels):
-        self.assertEqual(fvec_read_sample(self.vector,channel,index),0.)
+        self.assertEqual(0., fvec_read_sample(self.vector,channel,index))
 
   def test_fvec_write_sample(self):
     """ check new fvec elements are set with fvec_write_sample """
@@ -30,7 +30,7 @@ class fvec_test_case(unittest.TestCase):
         fvec_write_sample(self.vector,1.,channel,index)
     for index in range(buf_size):
       for channel in range(channels):
-        self.assertEqual(fvec_read_sample(self.vector,channel,index),1.)
+        self.assertEqual(1., fvec_read_sample(self.vector,channel,index))
 
 if __name__ == '__main__':
   unittest.main()