philsquared/Catch — Issue #75: INFO() will not display one digit number
Author: Strix-CZ
Created: 2012-02-28 16:31:12+00:00
State: open

ANON_TEST_CASE() {
INFO(3);
REQUIRE(false);
}

Will output:

[Started testing]

[Running: unnamed/1]
[Started testing]

[Running: unnamed/1]
..\test_catch\main_test.cpp:65: [info: ]

..\test_catch\main_test.cpp:66: false failed for: false
[Finished: unnamed/1 All 1 test(s) failed]
[Testing completed. All 1 test(s) failed]

Number 3 disappeared. To fix this issue, go to line 275 in single header version or find function Catch::trim and change comparison "start < end" to "start <= end".