2 * Created by Martin on 17/02/2017.
4 * Distributed under the Boost Software License, Version 1.0. (See accompanying
5 * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
11 TEST_CASE( "Character pretty printing" ){
12 SECTION("Specifically escaped"){
15 char carr_return
= '\r';
16 char form_feed
= '\f';
18 CHECK(newline
== '\n');
19 CHECK(carr_return
== '\r');
20 CHECK(form_feed
== '\f');
22 SECTION("General chars"){
25 char chars
[] = {'a', 'z', 'A', 'Z'};
26 for (int i
= 0; i
< 4; ++i
){
28 REQUIRE(c
== chars
[i
]);
32 char null_terminator
= '\0';
33 CHECK(null_terminator
== '\0');
34 for (int i
= 2; i
< 6; ++i
){
35 char c
= static_cast<char>(i
);
42 TEST_CASE( "Capture and info messages" ) {
43 SECTION("Capture should stringify like assertions") {
48 SECTION("Info should NOT stringify the way assertions do") {