summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-11 17:24:49 -0400
committerbd <bdunahu@operationnull.com>2025-03-11 17:24:49 -0400
commit256fd73b42ae7d10fe0190984d032f839a2127bd (patch)
tree99ffd87c42c7179561877254431cb78fca02a5f3 /tests
parentd743af4b5df01e3a75725912bee1d00b8fe573dd (diff)
clarify macro names, implement load in CLI, fix many display issues
Diffstat (limited to 'tests')
-rw-r--r--tests/utils.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/utils.cc b/tests/utils.cc
index f0e4c24..900db1a 100644
--- a/tests/utils.cc
+++ b/tests/utils.cc
@@ -24,21 +24,21 @@ TEST_CASE("Parse arbitrary fields # two", "[cache]")
TEST_CASE("wrap address outside upper bound", "[utils]")
{
- int address = MEM_SIZE + 25;
+ int address = MEM_LINES + 25;
int wrapped = wrap_address(address);
REQUIRE(wrapped == 25);
}
TEST_CASE("wrap address inside upper bound", "[utils]")
{
- int address = MEM_SIZE - 25;
+ int address = MEM_LINES - 25;
int wrapped = wrap_address(address);
- REQUIRE(wrapped == MEM_SIZE - 25);
+ REQUIRE(wrapped == MEM_LINES - 25);
}
TEST_CASE("wrap address at upper bound", "[utils]")
{
- int address = MEM_SIZE;
+ int address = MEM_LINES;
int wrapped = wrap_address(address);
REQUIRE(wrapped == 0);
}
@@ -47,14 +47,14 @@ TEST_CASE("wrap address lower than 0 with magnitude lesser than mem size", "[uti
{
int address = -10;
int wrapped = wrap_address(address);
- REQUIRE(wrapped == MEM_SIZE - 10);
+ REQUIRE(wrapped == MEM_LINES - 10);
}
TEST_CASE("wrap address lower than 0 but with magnitude greater than mem size", "[utils]")
{
- int address = -(MEM_SIZE + 10);
+ int address = -(MEM_LINES + 10);
int wrapped = wrap_address(address);
- REQUIRE(wrapped == MEM_SIZE - 10);
+ REQUIRE(wrapped == MEM_LINES - 10);
}
TEST_CASE("wrap address at 0", "[utils]")
@@ -62,4 +62,4 @@ TEST_CASE("wrap address at 0", "[utils]")
int address = 0;
int wrapped = wrap_address(address);
REQUIRE(wrapped == 0);
-} \ No newline at end of file
+}