catch2/tests/SelfTest/IntrospectiveTests
Martin Hořeňovský 905bf438ae
Fix bad indentation calculation in the console reporter
The problem came from the console reporter trying to provide a
fancy linebreaking (primarily for things like `SCENARIO` or the
BDD macros), so that new lines start with extra indentation if
the text being line broken starts as "{text}: ".

The console reporter did not properly take into account cases
where the ": " part would already be in a later line, in which
case it would ask for non-sensical level of indentation (larger
than single line length).

We fixed this by also enforcing that the special indentation case
only triggers if the ": " is found early enough in the line, so
that we also avoid degenerate cases like this:
```
blablabla: F
           a
           n
           c
           y
           .
           .
           .
```

Fixes #2309
2021-10-25 15:21:28 +02:00
..
Clara.tests.cpp Arg::parse accepts plain Args as argument 2020-11-07 18:00:27 +01:00
CmdLine.tests.cpp Rename Contains string matcher builder to ContainsSubstring 2021-09-27 21:28:33 +02:00
Details.tests.cpp Standardize header names and file locations 2020-04-24 18:58:44 +02:00
FloatingPoint.tests.cpp Fix ulp distance calculation for numbers with different signs 2021-07-27 21:04:41 +02:00
GeneratorsImpl.tests.cpp Fix types in generators: decay types, properly constrain forwarding 2020-10-20 10:57:37 +02:00
InternalBenchmark.tests.cpp Add test for !shouldfail and failed benchmarks 2021-08-21 00:06:31 +02:00
PartTracker.tests.cpp Modify generator tracking to allow GENERATEs between SECTIONs 2020-07-26 11:35:06 +02:00
RandomNumberGeneration.tests.cpp Add generateRandomSeed utility to generate randomness seed 2021-10-08 21:35:41 +02:00
Reporters.tests.cpp Fix bad indentation calculation in the console reporter 2021-10-25 15:21:28 +02:00
String.tests.cpp Use StringRef for className in TestCaseInfo 2021-09-27 19:07:45 +02:00
StringManip.tests.cpp Change startsWith(char) to take StringRef as argument 2021-09-27 14:55:28 +02:00
Tag.tests.cpp Rename Contains string matcher builder to ContainsSubstring 2021-09-27 21:28:33 +02:00
ToString.tests.cpp Cleanup and optimize stringifying of string-like types 2021-05-18 23:15:22 +02:00
UniquePtr.tests.cpp Sweep out Wshadow 2020-09-06 13:11:42 +02:00
Xml.tests.cpp Add more tests for XmlWrite::write* members 2021-10-02 14:39:52 +02:00