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,12 @@
#include "inheritance.hpp"
#include <gtest/gtest.h>
TEST(Inheritance, CircleArea) {
oop::Circle circle(2.0);
EXPECT_NEAR(circle.area(), 12.566370614359172, 1e-9);
}
TEST(Inheritance, RectangleArea) {
oop::Rectangle rect(3.0, 4.0);
EXPECT_DOUBLE_EQ(rect.area(), 12.0);
}