diff options
Diffstat (limited to 'tests/dram.cc')
-rw-r--r-- | tests/dram.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/dram.cc b/tests/dram.cc index 21182f8..8d5d03b 100644 --- a/tests/dram.cc +++ b/tests/dram.cc @@ -1,8 +1,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; } |