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/dram.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/dram.cc') 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 +#include TEST_CASE("Constructor initialize test 1", "[dram]") { Dram *d = new Dram(1, 4); + std::array expected = {0, 0, 0, 0}; + std::array actual = d->view(0, 1)[0]; + CHECK(expected == actual); delete d; } -- cgit v1.2.3