summaryrefslogtreecommitdiff
path: root/tests/cache.cc
blob: 3b3787da2ffaaf93a7f25638837eb1c15c972e13 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "cache.h"
#include <catch2/catch_test_macros.hpp>

TEST_CASE("Constructor initialize test 1", "[cache]")
{
	Cache *c = new Cache(1, nullptr, 4);
	std::array<signed int, 4> expected = {0, 0, 0, 0};
	std::array<signed int, 4> actual = c->view(0, 1)[0];
	CHECK(expected == actual);
	delete c;
}