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

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