summaryrefslogtreecommitdiff
path: root/Testing/include/simulation/workloads/WorkloadHistoryTest.h
blob: 4cf7f4e3d83a403aa80c014f470141db8e31a20f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}