BD_Integratoren/test/test_LiveAgg.cpp
2021-10-22 21:58:37 +02:00

17 lines
305 B
C++

//
// Created by jholder on 21.10.21.
//
#include <catch2/catch.hpp>
#include "LiveAgg.hpp"
TEST_CASE("LiveAgg") {
auto ag = LiveAgg();
SECTION("Mean of same values"){
ag.feed(1.0);
ag.feed(1.0);
REQUIRE(ag.getMean()==1.0);
REQUIRE(ag.getNumPoints()==2);
}
}