-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcutter-1.2.0.cppcut-assertions-helper.h.diff
52 lines (50 loc) · 2.29 KB
/
cutter-1.2.0.cppcut-assertions-helper.h.diff
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
--- a/cppcutter/cppcut-assertions-helper.h 2011-12-31 02:02:52.000000000 -0800
+++ b/cppcutter/cppcut-assertions-helper.h 2012-03-25 23:57:16.000000000 -0700
@@ -54,24 +54,6 @@
const char *expression_expected,
const char *expression_actual);
- template <class Type> void assert_equal(const Type *expected,
- const Type *actual,
- const char *expression_expected,
- const char *expression_actual)
- {
- assert_equal_reference(expected, actual,
- expression_expected, expression_actual);
- };
-
- template <class Type> void assert_equal(const Type& expected,
- const Type& actual,
- const char *expression_expected,
- const char *expression_actual)
- {
- assert_equal_reference(expected, actual,
- expression_expected, expression_actual);
- };
-
template <class Type> void assert_equal_reference(
const Type& expected, const Type& actual,
const char *expression_expected, const char *expression_actual)
@@ -95,6 +77,24 @@
}
}
+ template <class Type> void assert_equal(const Type *expected,
+ const Type *actual,
+ const char *expression_expected,
+ const char *expression_actual)
+ {
+ assert_equal_reference(expected, actual,
+ expression_expected, expression_actual);
+ };
+
+ template <class Type> void assert_equal(const Type& expected,
+ const Type& actual,
+ const char *expression_expected,
+ const char *expression_actual)
+ {
+ assert_equal_reference(expected, actual,
+ expression_expected, expression_actual);
+ };
+
CPPCUT_DECL
void assert_not_equal(char *expected, char *actual,
const char *expression_expected,