-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathassembler_test.h
executable file
·79 lines (66 loc) · 1.61 KB
/
assembler_test.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//[of]:Copyright statement
//[c](C) Copyright 2005, 2012 Kristian Dupont Knudsen. MIT license -- see LICENSE.md for details
//[c]This file is most easily read with Code Browser: http://tibleiz.net/code-browser/
//[cf]
#pragma once
#include <cppunit/extensions/HelperMacros.h>
class instructions_test : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE(instructions_test);
CPPUNIT_TEST(TestAdd);
CPPUNIT_TEST(TestAdc);
CPPUNIT_TEST(TestSub);
CPPUNIT_TEST(TestSbb);
CPPUNIT_TEST(TestCmp);
CPPUNIT_TEST(TestOr);
CPPUNIT_TEST(TestAnd);
CPPUNIT_TEST(TestXor);
CPPUNIT_TEST(TestNot);
CPPUNIT_TEST(TestNeg);
CPPUNIT_TEST(TestInc);
CPPUNIT_TEST(TestDec);
CPPUNIT_TEST(TestMov);
CPPUNIT_TEST(TestMovIndex);
CPPUNIT_TEST(TestRet);
CPPUNIT_TEST(TestSet);
CPPUNIT_TEST(TestPush);
CPPUNIT_TEST(TestPop);
CPPUNIT_TEST_SUITE_END();
public:
void setUp() {};
void tearDown() {};
void TestAdd();
void TestAdc();
void TestSub();
void TestSbb();
void TestCmp();
void TestOr();
void TestAnd();
void TestXor();
void TestNot();
void TestNeg();
void TestInc();
void TestDec();
void TestMov();
void TestMovIndex();
void TestRet();
void TestSet();
void TestPush();
void TestPop();
};
class assembler_test : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE(assembler_test);
CPPUNIT_TEST(TestInvoke);
CPPUNIT_TEST(TestInvokeParam);
CPPUNIT_TEST(TestJmp);
CPPUNIT_TEST(TestCall);
CPPUNIT_TEST_SUITE_END();
public:
void setUp() {};
void tearDown() {};
void TestInvoke();
void TestInvokeParam();
void TestJmp();
void TestCall();
};