We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f9ea73 commit 1eaba40Copy full SHA for 1eaba40
src/test/contrib_charconv.cpp
@@ -42,15 +42,18 @@ namespace TAO_PEGTL_NAMESPACE
42
charconv_success( "0", int( 0 ) );
43
charconv_success( "0", unsigned( 0 ) );
44
45
- charconv_success( "0a", int( 0 ), 1 );
46
- charconv_success( "0b", unsigned( 0 ), 1 );
+ charconv_success( "0r", int( 0 ), 1 );
+ charconv_success( "0s", unsigned( 0 ), 1 );
47
48
charconv_success( "0x0", int( 0 ), 2 );
49
charconv_success( "0x0", unsigned( 0 ), 2 );
50
51
charconv_success( "-1", int( -1 ) );
52
charconv_failure( "-1", unsigned( 42 ) );
53
54
+ charconv_failure( "rrr", int( 0 ) );
55
+ charconv_failure( "sss", unsigned( 0 ) );
56
+
57
charconv_failure( "999999999999", int( 0 ) );
58
charconv_failure( "999999999999", unsigned( 0 ) );
59
}
0 commit comments