Add test for std::vector<bool>::reference

Co-authored-by: Felix <felix-antoine.constantin@polymtl.ca>
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
Vladislav Shchapov 2023-08-04 23:13:43 +05:00
parent 96d1fa22d4
commit 7ce9a2e7db

View File

@ -221,3 +221,8 @@ TEST(std_test, exception) {
}
#endif
}
TEST(std_test, format_vector_bool_specialization) {
std::vector<bool> v = {true, false};
EXPECT_EQ(fmt::format("{} {}", v[0], v[1]), "true false");
}