From 20fe698a4074df4abe02f14a1a14481770e90abc Mon Sep 17 00:00:00 2001 From: bd Date: Thu, 6 Mar 2025 00:03:00 -0500 Subject: Storage.view method, some initial tests --- tests/cache.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/cache.cc') 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 expected = {0, 0, 0, 0}; + std::array actual = c->view(0, 1)[0]; + CHECK(expected == actual); delete c; } -- cgit v1.2.3