From 95ac4ee1594b60a5ed3eed47827408538ed68663 Mon Sep 17 00:00:00 2001 From: David Wagner Date: Fri, 13 Mar 2015 18:47:30 +0100 Subject: fixed point tests: remove trailing zeros from values The fixed-point tests are user-input tests. Since a user isn't likely to input any trailing zeros, let's remove them. Signed-off-by: David Wagner --- test/test-fixed-point-parameter/Main.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/test-fixed-point-parameter/Main.py b/test/test-fixed-point-parameter/Main.py index 65e1c8d..ed57873 100755 --- a/test/test-fixed-point-parameter/Main.py +++ b/test/test-fixed-point-parameter/Main.py @@ -90,6 +90,8 @@ class FixedPointTester(): runSuccess = True for value in self._shouldWork: + value = value.normalize() + print('Testing %s for %s' % (value, self._paramPath)) value, success = self.checkBounds(value) if not success: @@ -116,6 +118,7 @@ class FixedPointTester(): continue for value in self._shouldBreak: + value = value.normalize() print('Testing invalid value %s for %s' % (value, self._paramPath)) value, success = self.checkBounds(value) if success: -- cgit v1.1