Remove counting_iterator

This commit is contained in:
Victor Zverovich
2024-07-22 16:01:18 -07:00
parent f6b4a23b83
commit ba36a04811
4 changed files with 8 additions and 57 deletions

View File

@@ -14,14 +14,6 @@
#include "gmock/gmock.h"
#include "gtest-extra.h"
TEST(iterator_test, counting_iterator) {
auto it = fmt::detail::counting_iterator();
auto prev = it++;
EXPECT_EQ(prev.count(), 0);
EXPECT_EQ(it.count(), 1);
EXPECT_EQ((it + 41).count(), 42);
}
TEST(compile_test, compile_fallback) {
// FMT_COMPILE should fallback on runtime formatting when `if constexpr` is
// not available.