Lookup - Not Found¶
#include <gtest/gtest.h>
#include <sensor-random.h>
#include <sensor-const.h>
#include <sensor-repo.h>
TEST(stl_exercises_suite, sensor_repository_lookup_negative)
{
SensorRepository repo;
repo.add_sensor("Ofen", new RandomSensor(2.3, 666.1));
repo.add_sensor("Weltraum", new ConstantSensor(-273.15));
Sensor* s = repo.get_sensor("Nowhere");
ASSERT_EQ(s, nullptr);
}