forked from CxxTest/cxxtest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SameFiles.h
41 lines (32 loc) · 845 Bytes
/
SameFiles.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
#include <cxxtest/TestSuite.h>
//
// This test suite demonstrates TS_ASSERT_SAME_FILES
//
class SameFiles : public CxxTest::TestSuite
{
public:
void testAssertFiles()
{
TS_ASSERT_SAME_FILES("SameFiles.h", "SameFiles.h");
}
void testAssertFileShorter()
{
TS_ASSERT_SAME_FILES("SameFiles.h", "SameFilesLonger.h");
}
void testAssertFileLonger()
{
TS_ASSERT_SAME_FILES("SameFilesLonger.h", "SameFiles.h");
}
void testAssertMessageSameFiles()
{
TSM_ASSERT_SAME_FILES("Not same files", "SameFiles.h", "SameData.h");
}
void testSafeAssertSameFiles()
{
ETS_ASSERT_SAME_FILES("SameFiles.h", "SameFiles.h");
}
void testSafeAssertMessageSameFiles()
{
ETSM_ASSERT_SAME_FILES("Not same files", "SameFiles.h", "SameData.h");
}
};