File tree 3 files changed +46
-0
lines changed
3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ set(TEST_SRCS
45
45
src/String /test_concat.cpp
46
46
src/String /test_length.cpp
47
47
src/String /test_String.cpp
48
+ src/String /test_toLowerCase.cpp
49
+ src/String /test_toUpperCase.cpp
48
50
src/WCharacter/test_isControl.cpp
49
51
src/WCharacter/test_isDigit.cpp
50
52
src/WCharacter/test_isHexadecimalDigit.cpp
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2020 Arduino. All rights reserved.
3
+ */
4
+
5
+ /* *************************************************************************************
6
+ * INCLUDE
7
+ **************************************************************************************/
8
+
9
+ #include < catch.hpp>
10
+
11
+ #include < String.h>
12
+
13
+ /* *************************************************************************************
14
+ * TEST CODE
15
+ **************************************************************************************/
16
+
17
+ TEST_CASE (" Testing String::toLowerCase" , " [String-toLowerCase-01]" )
18
+ {
19
+ arduino::String str (" HELLO ARDUINO" );
20
+ str.toLowerCase ();
21
+ REQUIRE (strcmp (str.c_str (), " hello arduino" ) == 0 );
22
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2020 Arduino. All rights reserved.
3
+ */
4
+
5
+ /* *************************************************************************************
6
+ * INCLUDE
7
+ **************************************************************************************/
8
+
9
+ #include < catch.hpp>
10
+
11
+ #include < String.h>
12
+
13
+ /* *************************************************************************************
14
+ * TEST CODE
15
+ **************************************************************************************/
16
+
17
+ TEST_CASE (" Testing String::toUpperCase" , " [String-toUpperCase-01]" )
18
+ {
19
+ arduino::String str (" hello arduino" );
20
+ str.toUpperCase ();
21
+ REQUIRE (strcmp (str.c_str (), " HELLO ARDUINO" ) == 0 );
22
+ }
You can’t perform that action at this time.
0 commit comments