From 3fa6069da869e68f6b75441df770e52796483530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Tue, 13 May 2025 09:54:00 +0200 Subject: [PATCH] fix(ex05): use uppercase level specifiers --- ex05/Harl.cpp | 8 ++++---- ex05/main.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ex05/Harl.cpp b/ex05/Harl.cpp index a55c75c..02dedf5 100644 --- a/ex05/Harl.cpp +++ b/ex05/Harl.cpp @@ -5,10 +5,10 @@ typedef void (Harl::*HarlComplaint)(void); int getLevelIdx(std::string level) { static const std::string levels[] = { - "debug", - "info", - "warning", - "error", + "DEBUG", + "INFO", + "WARNING", + "ERROR", }; for (int i = 0; i < 4; i++) { if (level == levels[i]) diff --git a/ex05/main.cpp b/ex05/main.cpp index ea459b8..98f5919 100644 --- a/ex05/main.cpp +++ b/ex05/main.cpp @@ -4,9 +4,9 @@ int main(void) { Harl harl; harl.complain("Debug"); - harl.complain("debug"); - harl.complain("info"); - harl.complain("warning"); - harl.complain("error"); + harl.complain("DEBUG"); + harl.complain("INFO"); + harl.complain("WARNING"); + harl.complain("ERROR"); return 0; }