Skip to content

Commit

Permalink
[libc] clean up sprintf macros and float tests (llvm#110759)
Browse files Browse the repository at this point in the history
The sprintf tests have a macro named "ASSERT_STREQ_LEN" which was used
in about half of the tests. This patch moves all of the tests which can
to using that macro. This patch also enables long double tests for %e
and %g, since those never got finished. There's still some work to do
enabling long double testing for long doubles other than the intel 80
bit format, but that can land in a followup.

The `#ifdef LIBC_COPT_FLOAT_TO_STR_REDUCED_PRECISION` lines are for a
followup patch.
  • Loading branch information
michaelrj-google authored and xgupta committed Oct 4, 2024
1 parent 5273f73 commit ea2c4ee
Showing 1 changed file with 222 additions and 631 deletions.
Loading

0 comments on commit ea2c4ee

Please sign in to comment.