diff options
author | David Wagner <david.wagner@intel.com> | 2015-03-13 18:47:30 +0100 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2015-04-24 13:39:11 -0700 |
commit | 95ac4ee1594b60a5ed3eed47827408538ed68663 (patch) | |
tree | 21841a76edf258de739801afe5f47fe4f8392741 /test | |
parent | dc04b7b42a10fc389e70c93a52e6aa8259d0d94d (diff) | |
download | external_parameter-framework-95ac4ee1594b60a5ed3eed47827408538ed68663.zip external_parameter-framework-95ac4ee1594b60a5ed3eed47827408538ed68663.tar.gz external_parameter-framework-95ac4ee1594b60a5ed3eed47827408538ed68663.tar.bz2 |
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 <david.wagner@intel.com>
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-fixed-point-parameter/Main.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |