1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/float: rename STEP constant

This commit is contained in:
Alexandre Abadie 2022-05-14 09:38:01 +02:00
parent c034f6e15a
commit 1bd1963ee6
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -30,7 +30,7 @@
#define TEST_ITER (1000UL)
#endif
#define STEP (0.1)
#define FLOAT_STEP (0.1)
int main(void)
{
@ -39,7 +39,7 @@ int main(void)
puts("Testing floating point arithmetic...\n");
for (unsigned long i = 0; i < TEST_ITER; i++) {
x += STEP;
x += FLOAT_STEP;
double z = (x - floor(x));
if (z >= 1.0) {
puts("[FAILED]");