Insert - Sunny Case¶
#include <gtest/gtest.h>
#include <sensor-random.h>
#include <sensor-const.h>
#include <sensor-repo.h>
TEST(stl_exercises_suite, sensor_repository_insert)
{
SensorRepository repo;
repo.add_sensor("Ofen", new RandomSensor(2.3, 666.1));
repo.add_sensor("Weltraum", new ConstantSensor(-273.15));
ASSERT_EQ(repo.size(), 2);
}