changeset 4:1abd0cc4caa4

reader_test: use the value one up from the median when even.
author Paul Fisher <paul@pfish.zone>
date Fri, 27 Sep 2019 21:42:47 -0400
parents d961c8a93d6b
children 885bff085edf
files weatherlog/reader_test.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/weatherlog/reader_test.py	Fri Sep 27 21:38:23 2019 -0400
+++ b/weatherlog/reader_test.py	Fri Sep 27 21:42:47 2019 -0400
@@ -44,7 +44,7 @@
         perms_less = itertools.permutations((1.0, 1.5))
         for perm in perms_less:
             self.assertEqual(
-                reader._last_stable(perm, epsilon=0.51, count=2), 1.0)
+                reader._last_stable(perm, epsilon=0.51, count=2), 1.5)
 
 
 if __name__ == '__main__':