summaryrefslogtreecommitdiff
path: root/tests/if.cc
diff options
context:
space:
mode:
authorSiddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com>2025-03-30 21:30:17 -0400
committerGitHub <noreply@github.com>2025-03-30 21:30:17 -0400
commit52e1ca72925444b8e5a9bb5b240a4063a4d7b958 (patch)
treebfd8e383eedbd40f5c9067e04734f62ed6ccab23 /tests/if.cc
parent12a9e93f913c0057f2ef32f5894931c8b4bd3a85 (diff)
parent6a15f66bef28de9e1b982c3adda4d9b75c818852 (diff)
Merge pull request #42 from bdunahu/bdunahu
Add tests for EX, rest of (non-vector) instructions
Diffstat (limited to 'tests/if.cc')
-rw-r--r--tests/if.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/if.cc b/tests/if.cc
index 1f02cb0..4ebc47d 100644
--- a/tests/if.cc
+++ b/tests/if.cc
@@ -5,10 +5,10 @@
#include "instrDTO.h"
#include <catch2/catch_test_macros.hpp>
-class IFPipeFixture
+class IFFixture
{
public:
- IFPipeFixture()
+ IFFixture()
{
Dram *d;
@@ -21,7 +21,7 @@ class IFPipeFixture
this->f = new IF(nullptr);
this->ct = new Controller(this->f, this->c, true);
}
- ~IFPipeFixture()
+ ~IFFixture()
{
delete this->ct;
delete this->c;
@@ -70,7 +70,7 @@ class IFPipeFixture
Controller *ct;
};
-TEST_CASE_METHOD(IFPipeFixture, "fetch returns single instuction", "[if_pipe]")
+TEST_CASE_METHOD(IFFixture, "fetch returns single instuction", "[if_pipe]")
{
InstrDTO *i;
int expected_cycles;
@@ -83,7 +83,7 @@ TEST_CASE_METHOD(IFPipeFixture, "fetch returns single instuction", "[if_pipe]")
delete i;
}
-TEST_CASE_METHOD(IFPipeFixture, "fetch returns two instuctions", "[if_pipe]")
+TEST_CASE_METHOD(IFFixture, "fetch returns two instuctions", "[if_pipe]")
{
InstrDTO *i;
int expected_cycles;
@@ -103,7 +103,7 @@ TEST_CASE_METHOD(IFPipeFixture, "fetch returns two instuctions", "[if_pipe]")
delete i;
}
-TEST_CASE_METHOD(IFPipeFixture, "fetch waits with old instruction",
+TEST_CASE_METHOD(IFFixture, "fetch waits with old instruction",
"[if_pipe]")
{
InstrDTO *i;