Skip to content

Commit 1eaba40

Browse files
committed
Small test improvement.
1 parent 1f9ea73 commit 1eaba40

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/test/contrib_charconv.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,18 @@ namespace TAO_PEGTL_NAMESPACE
4242
charconv_success( "0", int( 0 ) );
4343
charconv_success( "0", unsigned( 0 ) );
4444

45-
charconv_success( "0a", int( 0 ), 1 );
46-
charconv_success( "0b", unsigned( 0 ), 1 );
45+
charconv_success( "0r", int( 0 ), 1 );
46+
charconv_success( "0s", unsigned( 0 ), 1 );
4747

4848
charconv_success( "0x0", int( 0 ), 2 );
4949
charconv_success( "0x0", unsigned( 0 ), 2 );
5050

5151
charconv_success( "-1", int( -1 ) );
5252
charconv_failure( "-1", unsigned( 42 ) );
5353

54+
charconv_failure( "rrr", int( 0 ) );
55+
charconv_failure( "sss", unsigned( 0 ) );
56+
5457
charconv_failure( "999999999999", int( 0 ) );
5558
charconv_failure( "999999999999", unsigned( 0 ) );
5659
}

0 commit comments

Comments
 (0)