[libcxx] [test] Fix the monetary locale negative_sign test for en_US.UTF-8 on Windows
authorMartin Storsjö <martin@martin.st>
Thu, 13 Jan 2022 13:02:16 +0000 (13:02 +0000)
committerMartin Storsjö <martin@martin.st>
Fri, 25 Feb 2022 21:41:35 +0000 (23:41 +0200)
commit2d54bf3bc75174b85e437eb94bc4d9de311a7e21
treea49b49175f5f8d1d4ca8a9c6b975f4489f56d494
parent2ce6bc61e876f4e7918952a565488d737ce647f6
[libcxx] [test] Fix the monetary locale negative_sign test for en_US.UTF-8 on Windows

On Windows, the en_US.UTF-8 locale returns `n_sign_posn == 0`, which
means that the sign for a negative currency is parentheses around
the whole value, instead of a leading minus.

Differential Revision: https://reviews.llvm.org/D120549
libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct.byname/negative_sign.pass.cpp