forked from arduino/ArduinoCore-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_isLowerCase.cpp
More file actions
33 lines (26 loc) · 997 Bytes
/
Copy pathtest_isLowerCase.cpp
File metadata and controls
33 lines (26 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Copyright (c) 2020 Arduino. All rights reserved.
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
/**************************************************************************************
* INCLUDE
**************************************************************************************/
#include <catch2/catch_test_macros.hpp>
#include <algorithm>
#include <api/WCharacter.h>
/**************************************************************************************
* TEST CODE
**************************************************************************************/
TEST_CASE ("isLowerCase(...) is called with a upper case number", "[isLowerCase-01]")
{
REQUIRE(arduino::isLowerCase('A') == false);
}
TEST_CASE ("isLowerCase(...) is called with a lower case number", "[isLowerCase-02]")
{
REQUIRE(arduino::isLowerCase('a') == true);
}
TEST_CASE ("isLowerCase(...) is called with a non-alphabetic number", "[isLowerCase-03]")
{
REQUIRE(arduino::isLowerCase('0') == false);
}