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,16 @@
#include "constructors.hpp"
#include <gtest/gtest.h>
TEST(Constructors, InitialAndAppend) {
oop::StringBuilder builder("Hi");
builder.append(" there");
EXPECT_EQ(builder.str(), "Hi there");
}
TEST(Constructors, CopySemantics) {
oop::StringBuilder original("C++");
oop::StringBuilder copy = original;
copy.append("11");
EXPECT_EQ(original.str(), "C++");
EXPECT_EQ(copy.str(), "C++11");
}