[libc] simplify printf converter tests
authorMichael Jones <michaelrj@google.com>
Wed, 8 Jun 2022 20:11:02 +0000 (13:11 -0700)
committerMichael Jones <michaelrj@google.com>
Thu, 9 Jun 2022 17:05:22 +0000 (10:05 -0700)
commit0bff6a3e3913d389bdf8fad4767ae92779cdf1c3
tree3fe8a7de4ea3be202d41d6dba207430c5dd9f948
parentfac39d14b129fa545fc7633ef8e0be9ddf45cab2
[libc] simplify printf converter tests

previously the printf converter tests reused the same string_writer,
which meant that each test depended on the tests before it to succeed.
This makes a new string_writer for each test to simplify and clarify the
tests.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D127341
libc/test/src/stdio/printf_core/converter_test.cpp