Update the formatter day tests to the new style.
Other test will be done separately.
Details
- Reviewers
vitaut ldionne - Group Reviewers
Restricted Project - Commits
- rGd23f609d9c33: [libc++][test] Adds format string helper.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I created this for the formatting escaped strings, which will take some time to review. I'm also converting the test for the landed day formatter and the year formatter which will be in review soon. So from that point of view it makes sense to have it separately. If wanted I can squash this with the formatter day changes.
One minor comment inline otherwise looks great. Much more readable than template operator()!
libcxx/test/std/time/time.syn/formatter_tests.h | ||
---|---|---|
33–35 ↗ | (On Diff #460844) | Why is this a lambda and not a normal function? If it was the latter you could have a locale overload without inventing a new name. |
I agree. I will adjust the other tests in a separate commit.
libcxx/test/std/time/time.syn/formatter_tests.h | ||
---|---|---|
33–35 ↗ | (On Diff #460844) | Good question. Basically since I used that pattern before. I've changed it to a normal function. |