my_asnprintf (NULL, &length, "%Lf %d", x.value, 33, 44, 55);
ASSERT (result != NULL);
ASSERT (length == strlen (result));
- ASSERT (3 <= length && strcmp (result + length - 3, " 33") == 0);
+ ASSERT (3 < length && strcmp (result + length - 3, " 33") == 0);
free (result);
}
{ /* Pseudo-Infinity. */
my_asnprintf (NULL, &length, "%Lf %d", x.value, 33, 44, 55);
ASSERT (result != NULL);
ASSERT (length == strlen (result));
- ASSERT (3 <= length && strcmp (result + length - 3, " 33") == 0);
+ ASSERT (3 < length && strcmp (result + length - 3, " 33") == 0);
free (result);
}
{ /* Pseudo-Zero. */
my_asnprintf (NULL, &length, "%Lf %d", x.value, 33, 44, 55);
ASSERT (result != NULL);
ASSERT (length == strlen (result));
- ASSERT (3 <= length && strcmp (result + length - 3, " 33") == 0);
+ ASSERT (3 < length && strcmp (result + length - 3, " 33") == 0);
free (result);
}
{ /* Unnormalized number. */
my_asnprintf (NULL, &length, "%Lf %d", x.value, 33, 44, 55);
ASSERT (result != NULL);
ASSERT (length == strlen (result));
- ASSERT (3 <= length && strcmp (result + length - 3, " 33") == 0);
+ ASSERT (3 < length && strcmp (result + length - 3, " 33") == 0);
free (result);
}
{ /* Pseudo-Denormal. */
my_asnprintf (NULL, &length, "%Lf %d", x.value, 33, 44, 55);
ASSERT (result != NULL);
ASSERT (length == strlen (result));
- ASSERT (3 <= length && strcmp (result + length - 3, " 33") == 0);
+ ASSERT (3 < length && strcmp (result + length - 3, " 33") == 0);
free (result);
}
#endif
my_asnprintf (NULL, &length, "%Le %d", x.value, 33, 44, 55);
ASSERT (result != NULL);
ASSERT (length == strlen (result));
- ASSERT (3 <= length && strcmp (result + length - 3, " 33") == 0);
+ ASSERT (3 < length && strcmp (result + length - 3, " 33") == 0);
free (result);
}
{
my_asnprintf (NULL, &length, "%Le %d", x.value, 33, 44, 55);
ASSERT (result != NULL);
ASSERT (length == strlen (result));
- ASSERT (3 <= length && strcmp (result + length - 3, " 33") == 0);
+ ASSERT (3 < length && strcmp (result + length - 3, " 33") == 0);
free (result);
}
/* asnprintf should print something even for noncanonical values. */
my_asnprintf (NULL, &length, "%Le %d", x.value, 33, 44, 55);
ASSERT (result != NULL);
ASSERT (length == strlen (result));
- ASSERT (3 <= length && strcmp (result + length - 3, " 33") == 0);
+ ASSERT (3 < length && strcmp (result + length - 3, " 33") == 0);
free (result);
}
{ /* Pseudo-Infinity. */
my_asnprintf (NULL, &length, "%Le %d", x.value, 33, 44, 55);
ASSERT (result != NULL);
ASSERT (length == strlen (result));
- ASSERT (3 <= length && strcmp (result + length - 3, " 33") == 0);
+ ASSERT (3 < length && strcmp (result + length - 3, " 33") == 0);
free (result);
}
{ /* Pseudo-Zero. */
my_asnprintf (NULL, &length, "%Le %d", x.value, 33, 44, 55);
ASSERT (result != NULL);
ASSERT (length == strlen (result));
- ASSERT (3 <= length && strcmp (result + length - 3, " 33") == 0);
+ ASSERT (3 < length && strcmp (result + length - 3, " 33") == 0);
free (result);
}
{ /* Unnormalized number. */
my_asnprintf (NULL, &length, "%Le %d", x.value, 33, 44, 55);
ASSERT (result != NULL);
ASSERT (length == strlen (result));
- ASSERT (3 <= length && strcmp (result + length - 3, " 33") == 0);
+ ASSERT (3 < length && strcmp (result + length - 3, " 33") == 0);
free (result);
}
{ /* Pseudo-Denormal. */
my_asnprintf (NULL, &length, "%Le %d", x.value, 33, 44, 55);
ASSERT (result != NULL);
ASSERT (length == strlen (result));
- ASSERT (3 <= length && strcmp (result + length - 3, " 33") == 0);
+ ASSERT (3 < length && strcmp (result + length - 3, " 33") == 0);
free (result);
}
#endif