diff options
author | Mark de Wever <koraq@xs4all.nl> | 2023-07-18 21:49:26 +0200 |
---|---|---|
committer | Mark de Wever <koraq@xs4all.nl> | 2023-07-18 21:49:26 +0200 |
commit | 7941e5df762cea2354e8d748cfd74ca20e008db5 (patch) | |
tree | f8c20325c2a1f7979c58dac1bf270bb139d895e8 /libcxx | |
parent | 857b0a1f400b385b27d6c252f74a80f121f46227 (diff) | |
download | llvm-7941e5df762cea2354e8d748cfd74ca20e008db5.zip llvm-7941e5df762cea2354e8d748cfd74ca20e008db5.tar.gz llvm-7941e5df762cea2354e8d748cfd74ca20e008db5.tar.bz2 |
[libc++][print] Fixes tests.
The exception message improvements for `<format>` were not applied to
print. The issue has been reported by Ian Anderson.
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/test/std/input.output/iostream.format/print.fun/print_tests.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/test/std/input.output/iostream.format/print.fun/print_tests.h b/libcxx/test/std/input.output/iostream.format/print.fun/print_tests.h index 46b6eeb..d28256c 100644 --- a/libcxx/test/std/input.output/iostream.format/print.fun/print_tests.h +++ b/libcxx/test/std/input.output/iostream.format/print.fun/print_tests.h @@ -74,10 +74,10 @@ void print_tests(TestFunction check, ExceptionTest check_exception) { check_exception("The format string contains an invalid escape sequence", "{:}-}", 42); check_exception("The format string contains an invalid escape sequence", "} "); - check_exception("The arg-id of the format-spec starts with an invalid character", "{-", 42); - check_exception("Argument index out of bounds", "hello {}"); - check_exception("Argument index out of bounds", "hello {0}"); - check_exception("Argument index out of bounds", "hello {1}", 42); + check_exception("The argument index starts with an invalid character", "{-", 42); + check_exception("The argument index value is too large for the number of arguments supplied", "hello {}"); + check_exception("The argument index value is too large for the number of arguments supplied", "hello {0}"); + check_exception("The argument index value is too large for the number of arguments supplied", "hello {1}", 42); } #endif // TEST_STD_INPUT_OUTPUT_IOSTREAM_FORMAT_PRINT_FUN_PRINT_TESTS_H |