Skip to content

Some test suite tests fail when setting MAX_INTEGRAL_DIGITS_FOR_DECIMAL #112

@eyalroz

Description

@eyalroz

Our expected values for testcase "floating-point specifiers with 31-32 bit integer values" assume that %f specifiers are interpreted as %e for too many decimal digits; but - this assumption doesn't always hold. This it is an error to simply check that:

  PRINTING_CHECK("2.1474836470e+09", ==, sprintf_, buffer, "%.10f", 2147483647.0); // 2^31 - 1

and we should actually check for something different depending on MAX_INTEGRAL_DIGITS_FOR_DECIMAL.

Related to #111.

Metadata

Metadata

Assignees

Labels

resolved-on-developA changeset fixing this issue has been commiutted to the development branchtestingOnly relevant to the testing programs rather than the main code itself

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions