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,13 @@
#include "constexpr_nullptr.hpp"
#include <gtest/gtest.h>
TEST(ConstexprNullptr, EnumClass) {
EXPECT_EQ(cpp11::to_index(cpp11::Color::Green), 1);
EXPECT_EQ(cpp11::square(4), 16);
}
TEST(ConstexprNullptr, FindNull) {
int x = 1;
EXPECT_EQ(cpp11::find_null(&x), &x);
EXPECT_EQ(cpp11::find_null(nullptr), nullptr);
}