mirror of https://github.com/catchorg/Catch2.git
Minor changes suggested by nabijaczleweli
This commit is contained in:
parent
f37c95088c
commit
0837427e00
|
@ -97,7 +97,7 @@ namespace Catch {
|
|||
|
||||
class XmlEncode {
|
||||
public:
|
||||
enum ForWhat { ForTextNodes, ForAttributes };
|
||||
enum ForWhat { ForTextNodes, ForAttributes };
|
||||
|
||||
XmlEncode( std::string const& str, ForWhat forWhat = ForTextNodes )
|
||||
: m_str( str ),
|
||||
|
|
|
@ -463,10 +463,10 @@ TEST_CASE( "XmlEncode" ) {
|
|||
SECTION( "string with control char (x7F)" ) {
|
||||
REQUIRE( encode( "[\x7F]" ) == "[]" );
|
||||
}
|
||||
SECTION( "string with control char that is negativ on signed char (xFF)" ) {
|
||||
SECTION( "string with control char that is negative on signed char (xFF)" ) {
|
||||
REQUIRE( encode( "[\xFF]" ) == "[ÿ]" );
|
||||
}
|
||||
SECTION( "string with utf8 multi byte char (german 'ae' umlaut)" ) {
|
||||
SECTION( "string with utf8 multibyte char (german 'ae' umlaut)" ) {
|
||||
REQUIRE( encode( "[\xC3\xA4]" ) == "[\xC3\xA4]" );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue