summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Wagner <david.wagner@intel.com>2015-03-13 18:47:30 +0100
committerEric Laurent <elaurent@google.com>2015-04-24 13:39:11 -0700
commit95ac4ee1594b60a5ed3eed47827408538ed68663 (patch)
tree21841a76edf258de739801afe5f47fe4f8392741
parentdc04b7b42a10fc389e70c93a52e6aa8259d0d94d (diff)
downloadexternal_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>
-rwxr-xr-xtest/test-fixed-point-parameter/Main.py3
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: