From 3a756109475ec8f84b6c78b12317c2b2217bbf5c Mon Sep 17 00:00:00 2001 From: avinal <185067@nith.ac.in> Date: Sun, 9 Aug 2020 17:54:38 +0530 Subject: [PATCH] Removed unused files --- include/code.hpp | 20 -------------------- src/code.cpp | 1 - tests/catch.hpp.asc | 16 ---------------- tests/test.cpp | 26 -------------------------- 4 files changed, 63 deletions(-) delete mode 100644 include/code.hpp delete mode 100644 src/code.cpp delete mode 100644 tests/catch.hpp.asc delete mode 100644 tests/test.cpp diff --git a/include/code.hpp b/include/code.hpp deleted file mode 100644 index 591d0fb..0000000 --- a/include/code.hpp +++ /dev/null @@ -1,20 +0,0 @@ -#pragma once -#ifdef CODE_HPP -#define CODE_HPP - -#include - -class code -{ -private: - const std::string mnemonic; - -public: - code(std::string mno) : mnemonic(mno) {} - ~code(); - std::array dest(); - std::array comp(); - std::array jump(); -}; - -#endif \ No newline at end of file diff --git a/src/code.cpp b/src/code.cpp deleted file mode 100644 index 650389b..0000000 --- a/src/code.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../include/code.hpp" \ No newline at end of file diff --git a/tests/catch.hpp.asc b/tests/catch.hpp.asc deleted file mode 100644 index ed83fcc..0000000 --- a/tests/catch.hpp.asc +++ /dev/null @@ -1,16 +0,0 @@ ------BEGIN PGP SIGNATURE----- - -iQIzBAABCgAdFiEE8QyLZSqAHw/oZQgX3kgwe4sNOBoFAl8LVskACgkQ3kgwe4sN -OBpc9xAAgKF6WpdczqUp1cSMsFmcXR7JhWp4lyqDIO1ADbPnF2NbmjW/3XTer3zt -BB6LxeHu3ozP9/nq7n2ncS13o3i1udcSloKE4nmO3FvsgL53Pj0K8Dkp9nD9GaZn -/oEmTyKsUj0DwjVfUAsdGAxnJw9eSaAsnXxEkLGBrzpF9aPgDlwZkMEkTWgVOC9S -xTtR0IdkDJtVN5JKRGZPUJNvvKvx0FF82plicGatWZ626hY/2UEzsao1N+L+CI5z -D+BvDuUMaARM24jRfVBIMDHSxKpib/oyxq8NR0dUrovXMmwlfFjBn4Y+xou82VJf -8aGBVino7Ig3yXCUj8k5NIER2ONXQR+1aF1IkJidbxCITbL9lcYjeENtSEaXUE8R -Z53r5Y3hnNHo/T3Dho3CMNghWFTk/LJzt1wCDCPJ9X3ft6/y8NKqdTHYfkU7yFlY -ZIhvt3M5AZEH36y4nm3DeIUr4EUBM7DIHXJFq7KmgmDUdXrJQVDbkHw09dAOYlGX -ZJ2UwFXg950NG31moIM7Ov9vaFkQQR4BD4IcmC4CREAyzwBC1w7i5T6zL4KidUXi -9N4Yh/vw9UhUmB9faDys8BIpwsR9N+YL9vKkB2ste1To9CcM03E5nA67a/UCviSk -7/l18RExMqdtX01GUNEINlcCzZr2/LZ0lZlKcn9S0iGJJ1c28sY= -=EsMh ------END PGP SIGNATURE----- diff --git a/tests/test.cpp b/tests/test.cpp deleted file mode 100644 index 6749d83..0000000 --- a/tests/test.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#define CATCH_CONFIG_MAIN -#include "catch.hpp" - -#include "../include/parser.hpp" - -typedef std::array Token; - -parser testpar; - -TEST_CASE("C-Instruction Split") -{ - Token token1 = {"null", "M", "null"}; - Token token2 = {"null", "M+1", "JMP"}; - Token token3 = {"AMD", "!D", "null"}; - Token token4 = {"MD", "M+D", "JGT"}; - std::string cases[4] = {"M", "M+1;JMP", "AMD=!D", "MD=M+D;JGT"}; - REQUIRE(testpar.split(cases[0]) == token1); - REQUIRE(testpar.split(cases[1]) == token2); - REQUIRE(testpar.split(cases[2]) == token3); - REQUIRE(testpar.split(cases[3]) == token4); -} - -TEST_CASE("Demo test") -{ - REQUIRE(1 == 1); -} \ No newline at end of file