d06 change test output
This commit is contained in:
@@ -22,10 +22,10 @@ bool isChar(std::string str) {
|
||||
bool checkChar(std::string str) {
|
||||
char c;
|
||||
|
||||
if (str.length() != 1 || isdigit(str[0]))
|
||||
if (!isChar(str))
|
||||
return false;
|
||||
c = str[0];
|
||||
|
||||
c = str[0];
|
||||
std::cout << B_CYAN << c << B_YELLOW " char" RESET "\n";
|
||||
fromChar(c);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user