[riot-notifications] [RIOT-OS/RIOT] tests/thread_float: improve and add script (#16901)

Alexandre Abadie notifications at github.com
Wed Sep 29 17:50:08 CEST 2021


@aabadie commented on this pull request.



> +def assertAlmostEqual(first, second, delta=0.05):
+    assert first + delta > second
+    assert first - delta < second

That's a useful function that could be used elsewhere I think. Maybe add it in testrunner (any opinion for a better place) and import it from there ?


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16901#pullrequestreview-766886641
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210929/739c659c/attachment-0001.htm>


More information about the notifications mailing list