1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/float
Cenk Gündoğan ac1a645fd1
Merge pull request #8190 from kaspar030/name_tests_by_folder
tests: set APPLICATION from folder name
2017-12-01 11:39:19 +01:00
..
tests tests: fix python style 'E302 expected 2 blank lines, found 1' 2017-11-29 17:32:06 +01:00
main.c tests/float: automated test and added pexpect script 2017-10-25 12:57:10 +02:00
Makefile tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
README.md tests/float: automated test and added pexpect script 2017-10-25 12:57:10 +02:00

Expected result

This application increases a non-even floating point number in steps of 0.1 starting from from 1234567.0 / 1024.0 ~= 1205.631835938. For each step it checks if the sum minus its 'floored' values is less than 1.0 (which it should always be by definition of floor).

Background

This test was introduced due to an error for floating point handling in an older newlib version.

The idea for this test is taken from: http://sourceware.org/ml/newlib/2010/msg00149.html