#include <gtest/gtest.h>
#include "renderive/real_time_data/Real_Time_Data.hpp"
static_assert(std::derived_from<Latest_Real_Time_Data<int>, Real_Time_Data_Base>);
static_assert(std::derived_from<History_Real_Time_Data<int>, Real_Time_Data_Base>);
TEST(real_time_data_base_test, exposes_runtime_retention) {
    Latest_Real_Time_Data<int> latest;
    History_Real_Time_Data<int> history;
    Real_Time_Data_Base* latest_base = &latest;
    Real_Time_Data_Base* history_base = &history;
    EXPECT_EQ(latest_base->retention(), Real_Time_Data_Retention::latest);
    EXPECT_EQ(history_base->retention(), Real_Time_Data_Retention::history);
}
