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