kblib 0.2.3
General utilities library for modern C++
|
#include "catch.hpp"
#include "kblib/format.h"
#include "kblib/iterators.h"
#include "kblib/stringops.h"
#include <iostream>
#include <string_view>
Go to the source code of this file.
Macros | |
#define | REQUIRE_DIGITS(v) REQUIRE_THAT((v), pred_count_digits((v))) |
Functions | |
template<typename T > | |
auto | pred_count_digits (T v) |
template<typename T , typename U > | |
auto | test_count_digits_range (kblib::range_t< T, U > r) |
TEST_CASE ("count_digits") | |
#define REQUIRE_DIGITS | ( | v | ) | REQUIRE_THAT((v), pred_count_digits((v))) |
Definition at line 21 of file format.cpp.
auto pred_count_digits | ( | T | v | ) |
Definition at line 12 of file format.cpp.
TEST_CASE | ( | "count_digits" | ) |
Definition at line 37 of file format.cpp.
auto test_count_digits_range | ( | kblib::range_t< T, U > | r | ) |
Definition at line 24 of file format.cpp.