d06 change test output

This commit is contained in:
Hugo LAMY
2022-03-17 14:27:32 +01:00
parent 4327b90c02
commit a7386b882e
4 changed files with 19 additions and 2 deletions

View File

@@ -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);