Fix bug in TokenStream parser

When presented with just '-' it would access the string at position [1]
This commit is contained in:
Mark Jansen
2024-09-05 23:06:32 +02:00
committed by Martin Hořeňovský
parent 77eca4e819
commit 02d3304782
19 changed files with 254 additions and 19 deletions

View File

@@ -724,6 +724,18 @@ ok {test-number} - ::Catch::Detail::stringify( '\0' ) == "0" for: "0" == "0"
ok {test-number} - ::Catch::Detail::stringify( static_cast<char>(2) ) == "2" for: "2" == "2"
# Character pretty printing
ok {test-number} - ::Catch::Detail::stringify( static_cast<char>(5) ) == "5" for: "5" == "5"
# Clara::Arg does not crash on incomplete input
ok {test-number} - name.empty() for: true
# Clara::Arg does not crash on incomplete input
ok {test-number} - result for: {?}
# Clara::Arg does not crash on incomplete input
ok {test-number} - result.type() == Catch::Clara::Detail::ResultType::Ok for: 0 == 0
# Clara::Arg does not crash on incomplete input
ok {test-number} - parsed.type() == Catch::Clara::ParseResultType::NoMatch for: 1 == 1
# Clara::Arg does not crash on incomplete input
ok {test-number} - parsed.remainingTokens().count() == 2 for: 2 == 2
# Clara::Arg does not crash on incomplete input
ok {test-number} - name.empty() for: true
# Clara::Arg supports single-arg parse the way Opt does
ok {test-number} - name.empty() for: true
# Clara::Arg supports single-arg parse the way Opt does
@@ -4547,5 +4559,5 @@ ok {test-number} - q3 == 23. for: 23.0 == 23.0
ok {test-number} -
# xmlentitycheck
ok {test-number} -
1..2271
1..2277