kblib 0.2.3
General utilities library for modern C++
format.cpp File Reference
#include "catch.hpp"
#include "kblib/format.h"
#include "kblib/iterators.h"
#include "kblib/stringops.h"
#include <iostream>
#include <string_view>
Include dependency graph for format.cpp:

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")
 

Macro Definition Documentation

◆ REQUIRE_DIGITS

#define REQUIRE_DIGITS (   v)    REQUIRE_THAT((v), pred_count_digits((v)))

Definition at line 21 of file format.cpp.

Function Documentation

◆ pred_count_digits()

template<typename T >
auto pred_count_digits ( v)

Definition at line 12 of file format.cpp.

◆ TEST_CASE()

TEST_CASE ( "count_digits"  )

Definition at line 37 of file format.cpp.

◆ test_count_digits_range()

template<typename T , typename U >
auto test_count_digits_range ( kblib::range_t< T, U >  r)

Definition at line 24 of file format.cpp.