diff options
author | bd <bdunahu@operationnull.com> | 2025-03-30 14:35:27 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-30 14:35:27 -0400 |
commit | 36dabe6183af98b2e3f6d0316436dc3affc3d986 (patch) | |
tree | 76515ad651b844e48d7bfafe5cb67d724ab7fb25 /tests | |
parent | 8c46ba4f216aec9f512cd398317f891be9b07e84 (diff) |
Free everything I allocated :)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/id.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/id.cc b/tests/id.cc index 6d6a155..be50ed5 100644 --- a/tests/id.cc +++ b/tests/id.cc @@ -125,6 +125,8 @@ TEST_CASE_METHOD(IDFixture, "Parse arbitrary r-type # two", "[id]") CHECK(i->get_s2() == 0x00000000); CHECK(i->get_s3() == 0x00000000); CHECK(i->get_mnemonic() == SUB); + + delete i; } TEST_CASE_METHOD(IDFixture, "Parse arbitrary i-type # one", "[id]") @@ -144,6 +146,8 @@ TEST_CASE_METHOD(IDFixture, "Parse arbitrary i-type # one", "[id]") CHECK(i->get_s2() == 0x00000000); CHECK(i->get_s3() == 0xF); CHECK(i->get_mnemonic() == SFTLI); + + delete i; } TEST_CASE_METHOD(IDFixture, "Parse arbitrary i-type # two", "[id]") @@ -163,6 +167,8 @@ TEST_CASE_METHOD(IDFixture, "Parse arbitrary i-type # two", "[id]") CHECK(i->get_s2() == 0x00000000); CHECK(i->get_s3() == 0xCC); CHECK(i->get_mnemonic() == STORE); + + delete i; } TEST_CASE_METHOD(IDFixture, "Parse arbitrary j-type # one", "[id]") @@ -181,6 +187,8 @@ TEST_CASE_METHOD(IDFixture, "Parse arbitrary j-type # one", "[id]") CHECK(i->get_s1() == 0x00000000); // registers are empty CHECK(i->get_s2() == 0x3456); CHECK(i->get_mnemonic() == BOF); + + delete i; } TEST_CASE_METHOD(IDFixture, "Parse arbitrary j-type # two", "[id]") @@ -199,6 +207,8 @@ TEST_CASE_METHOD(IDFixture, "Parse arbitrary j-type # two", "[id]") CHECK(i->get_s1() == 0x00000000); // registers are empty CHECK(i->get_s2() == 0xBBCCF); CHECK(i->get_mnemonic() == JAL); + + delete i; } TEST_CASE_METHOD(IDFixture, "read does not conflict with read", "[id]") |