From f1dca0e4408e6fcf85a11835e21875d035f783dd Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 3 Nov 2007 16:51:26 +0100 Subject: [PATCH] fvec test: change order in assertEqual --- tests/python/fvec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/python/fvec.py b/tests/python/fvec.py index 5159af93..98ad1cdc 100644 --- a/tests/python/fvec.py +++ b/tests/python/fvec.py @@ -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() -- 2.26.2