File tree 2 files changed +31
-0
lines changed
2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ set(TEST_TARGET ${CMAKE_PROJECT_NAME})
25
25
26
26
set (TEST_SRCS
27
27
src/WCharacter/test_isHexadecimalDigit.cpp
28
+ src/WCharacter/test_isUpperCase.cpp
28
29
)
29
30
30
31
set (TEST_DUT_SRCS
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 < WCharacter.h>
12
+
13
+ /* *************************************************************************************
14
+ * TEST CODE
15
+ **************************************************************************************/
16
+
17
+ TEST_CASE (" isUpperCase(...) is called with a upper case number" , " [isUpperCase-01]" )
18
+ {
19
+ REQUIRE (arduino::isUpperCase (' A' ) == true );
20
+ }
21
+
22
+ TEST_CASE (" isUpperCase(...) is called with a lower case number" , " [isUpperCase-02]" )
23
+ {
24
+ REQUIRE (arduino::isUpperCase (' a' ) == false );
25
+ }
26
+
27
+ TEST_CASE (" isUpperCase(...) is called with a non-alphabetic number" , " [isUpperCase-03]" )
28
+ {
29
+ REQUIRE (arduino::isUpperCase (' 0' ) == false );
30
+ }
You can’t perform that action at this time.
0 commit comments