summaryrefslogtreecommitdiff
path: root/Testing/include/simulation/workloads/WorkloadHistoryTest.h
diff options
context:
space:
mode:
Diffstat (limited to 'Testing/include/simulation/workloads/WorkloadHistoryTest.h')
-rw-r--r--Testing/include/simulation/workloads/WorkloadHistoryTest.h15
1 files changed, 15 insertions, 0 deletions
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 <gtest\gtest.h>
+
+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