Initial Course

This commit is contained in:
David Gil de Gómez Pérez
2026-08-11 17:40:36 +03:00
commit 9aed1d1d86
202 changed files with 3420 additions and 0 deletions
@@ -0,0 +1,14 @@
#include "print_and_format.hpp"
#include <gtest/gtest.h>
TEST(PrintAndFormat, FormatGreeting) {
EXPECT_EQ(cpp23::format_greeting("Ada", 100), "Ada scored 100 points");
}
TEST(PrintAndFormat, FormatTableRow) {
EXPECT_EQ(cpp23::format_table_row({"A", "B", "C"}), "A | B | C");
}
TEST(PrintAndFormat, FormatHex) {
EXPECT_EQ(cpp23::format_hex(255), "0xFF");
}