summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-10-13 16:54:33 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2021-10-13 16:54:33 +0200
commitca88a70d12d2c0332fd1dbc32f37625c348ad7b5 (patch)
tree2d79696f41dc72e8c881f45216062b91c4f22879
parenta2f34f9b4a9ed381f5173fd9f93c1e518b66e83b (diff)
update timing/rf24 singlefile test for co-dependent parameter detection update
-rwxr-xr-xtest/test_timingharness.py18
1 files changed, 3 insertions, 15 deletions
diff --git a/test/test_timingharness.py b/test/test_timingharness.py
index 0741c7a..f0a3d27 100755
--- a/test/test_timingharness.py
+++ b/test/test_timingharness.py
@@ -35,11 +35,11 @@ class TestModels(unittest.TestCase):
self.assertIsInstance(param_info("setup", "duration"), StaticFunction)
self.assertEqual(
param_info("write", "duration").model_function,
- "0 + regression_arg(0) + regression_arg(1) * parameter(max_retry_count) + regression_arg(2) * parameter(retry_delay) + regression_arg(3) * function_arg(1) + regression_arg(4) * parameter(max_retry_count) * parameter(retry_delay) + regression_arg(5) * parameter(max_retry_count) * function_arg(1) + regression_arg(6) * parameter(retry_delay) * function_arg(1) + regression_arg(7) * parameter(max_retry_count) * parameter(retry_delay) * function_arg(1)",
+ "0 + regression_arg(0) + regression_arg(1) * parameter(max_retry_count) + regression_arg(2) * parameter(retry_delay) + regression_arg(3) * parameter(max_retry_count) * parameter(retry_delay)",
)
self.assertAlmostEqual(
- param_info("write", "duration").model_args[0], 1281, places=0
+ param_info("write", "duration").model_args[0], 1163, places=0
)
self.assertAlmostEqual(
param_info("write", "duration").model_args[1], 464, places=0
@@ -48,19 +48,7 @@ class TestModels(unittest.TestCase):
param_info("write", "duration").model_args[2], 1, places=0
)
self.assertAlmostEqual(
- param_info("write", "duration").model_args[3], -9, places=0
- )
- self.assertAlmostEqual(
- param_info("write", "duration").model_args[4], 1, places=0
- )
- self.assertAlmostEqual(
- param_info("write", "duration").model_args[5], 0, places=0
- )
- self.assertAlmostEqual(
- param_info("write", "duration").model_args[6], 0, places=0
- )
- self.assertAlmostEqual(
- param_info("write", "duration").model_args[7], 0, places=0
+ param_info("write", "duration").model_args[3], 1, places=0
)
def test_dependent_parameter_pruning(self):