File tree Expand file tree Collapse file tree 5 files changed +18074
-3
lines changed
external/catch/v2.13.9/include Expand file tree Collapse file tree 5 files changed +18074
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ inline bool isAlpha(int c)
6363// that fits into the ASCII character set.
6464inline bool isAscii (int c)
6565{
66- return ( isascii (c) == 0 ? false : true );
66+ return ((c & ~ 0x7f ) != 0 ? false : true );
6767}
6868
6969
@@ -145,7 +145,7 @@ inline bool isHexadecimalDigit(int c)
145145// ASCII character set, by clearing the high-order bits.
146146inline int toAscii (int c)
147147{
148- return toascii (c );
148+ return (c & 0x7f );
149149}
150150
151151
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ project(test-ArduinoCore-API)
1010
1111include_directories (../api)
1212include_directories (include )
13- include_directories (external/catch/v2.13.1 /include )
13+ include_directories (external/catch/v2.13.9 /include )
1414
1515##########################################################################
1616
@@ -81,6 +81,7 @@ set(TEST_SRCS
8181 src/String /test_toLowerCase.cpp
8282 src/String /test_toUpperCase.cpp
8383 src/String /test_trim.cpp
84+ src/WCharacter/test_isAscii.cpp
8485 src/WCharacter/test_isControl.cpp
8586 src/WCharacter/test_isDigit.cpp
8687 src/WCharacter/test_isHexadecimalDigit.cpp
@@ -89,6 +90,7 @@ set(TEST_SRCS
8990 src/WCharacter/test_isSpace.cpp
9091 src/WCharacter/test_isUpperCase.cpp
9192 src/WCharacter/test_isWhitespace.cpp
93+ src/WCharacter/test_toAscii.cpp
9294)
9395
9496set (TEST_DUT_SRCS
You can’t perform that action at this time.
0 commit comments