From 070ce923574dcc57435cb3fb2dfe86b6a38cd249 Mon Sep 17 00:00:00 2001 From: MDBijman Date: Tue, 24 Jan 2017 12:15:26 +0100 Subject: Initial code commit with organized dependencies --- .../include/simulation/workloads/WorkloadHistoryTest.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Testing/include/simulation/workloads/WorkloadHistoryTest.h (limited to 'Testing/include/simulation/workloads/WorkloadHistoryTest.h') diff --git a/Testing/include/simulation/workloads/WorkloadHistoryTest.h b/Testing/include/simulation/workloads/WorkloadHistoryTest.h new file mode 100644 index 00000000..4cf7f4e3 --- /dev/null +++ b/Testing/include/simulation/workloads/WorkloadHistoryTest.h @@ -0,0 +1,15 @@ +#pragma once +#include "simulation\workloads\WorkloadHistory.h" + +#include + +TEST(WorkloadHistoryTest, SetFlopsDone) +{ + Simulation::WorkloadHistory history; + history.setFlopsDone(1, 5); + + auto a = history.history.at(0); + + ASSERT_EQ(a.first, 1); + ASSERT_EQ(a.second, 5); +} \ No newline at end of file -- cgit v1.2.3