summaryrefslogtreecommitdiff
path: root/tests/cache_2_1.cc
diff options
context:
space:
mode:
authorSiddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com>2025-04-27 17:54:41 -0400
committerGitHub <noreply@github.com>2025-04-27 17:54:41 -0400
commitecb0d131e786b1fec5233c7674ba6710ce201c83 (patch)
tree78bfefa262912b0f26a27a1b741c082a2a6e8176 /tests/cache_2_1.cc
parent6f99f95d9968ea5c83bf5a467bd4bc64750075a3 (diff)
parentde6ccea3c6d23b788acecb0744221a4f6078597a (diff)
Merge pull request #8 from bdunahu/bdunahu
Replace view function with get_data
Diffstat (limited to 'tests/cache_2_1.cc')
-rw-r--r--tests/cache_2_1.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/cache_2_1.cc b/tests/cache_2_1.cc
index cb48d2a..191d5f2 100644
--- a/tests/cache_2_1.cc
+++ b/tests/cache_2_1.cc
@@ -43,12 +43,12 @@ TEST_CASE_METHOD(C21, "store 32th, 96th element in DELAY cycles, evict to level
// check level 2
// note this is write-back == no write
- actual = this->c2->view(32, 1)[0];
+ actual = this->c2->get_data()[32];
REQUIRE(expected == actual);
// check level 1
expected.at(0) = w;
- actual = this->c->view(0, 1)[0];
+ actual = this->c->get_data()[0];
REQUIRE(expected == actual);
// wait = evict
@@ -57,7 +57,7 @@ TEST_CASE_METHOD(C21, "store 32th, 96th element in DELAY cycles, evict to level
});
// check level 2
- actual = this->c2->view(32, 1)[0];
+ actual = this->c2->get_data()[32];
REQUIRE(expected == actual);
// read in line
@@ -75,13 +75,13 @@ TEST_CASE_METHOD(C21, "store 32th, 96th element in DELAY cycles, evict to level
CHECK(r);
// check level 2
- actual = this->c2->view(96, 1)[0];
+ actual = this->c2->get_data()[96];
REQUIRE(expected == actual);
expected.at(0) = w;
- actual = this->c2->view(32, 1)[0];
+ actual = this->c2->get_data()[32];
REQUIRE(expected == actual);
// check level 1
- actual = this->c->view(0, 1)[0];
+ actual = this->c->get_data()[0];
REQUIRE(expected == actual);
}