Debian Codegraph @

tests/constraint_tests.c

raw symbols SCIP
1 #cxx . . $ `<file>/tests/constraint_tests.c`/include <cgreen/boxed_double.h>cxx . . $ `<file>/include/cgreen/boxed_double.h`/
2 #include <cgreen/cgreen.h>cxx . . $ `<file>/include/cgreen/cgreen.h`/
3 #include <cgreen/constraint.h>cxx . . $ `<file>/include/cgreen/constraint.h`/
4 #include <stdlib.h>
5
6 #ifdef __cpluspluscxx . . $ `<built-in>:440:9`!
7 using namespace cgreen;
8 #endif
9
10 #include "../src/cgreen_value_internal.h"cxx . . $ `<file>/src/cgreen_value_internal.h`/
11 #include "../src/constraint_internal.h"cxx . . $ `<file>/src/constraint_internal.h`/
12
13 static boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! compare_integer_constraintcxx . . $ compare_integer_constraint(bcd9f397bd044dd1).(Constraintcxx . . $ Constraint# *c, int x) {
14 CgreenValuecxx . . $ CgreenValue# v = make_cgreen_integer_valuecxx . . $ make_cgreen_integer_value(1194b204c86a8e67).(x);
15 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! r = (*c->comparecxx . . $ Constraint_#compare.)(c, v);
16 destroy_cgreen_valuecxx . . $ destroy_cgreen_value(2cf67620db0eb1fe).(v);
17 return r;
18 }
19
20 static boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! compare_pointer_constraintcxx . . $ compare_pointer_constraint(2e982c343b99cca8).(Constraintcxx . . $ Constraint# *c, void *x) {
21 CgreenValuecxx . . $ CgreenValue# v = make_cgreen_pointer_valuecxx . . $ make_cgreen_pointer_value(32799a8d7b9a4e33).(x);
22 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! r = (*c->comparecxx . . $ Constraint_#compare.)(c, v);
23 destroy_cgreen_valuecxx . . $ destroy_cgreen_value(2cf67620db0eb1fe).(v);
24 return r;
25 }
26
27 static boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! compare_string_constraintcxx . . $ compare_string_constraint(14cf902a2c23d63).(Constraintcxx . . $ Constraint# *c, const char *x) {
28 CgreenValuecxx . . $ CgreenValue# v = make_cgreen_string_valuecxx . . $ make_cgreen_string_value(ec756e338d9bee84).(x);
29 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! r = (*c->comparecxx . . $ Constraint_#compare.)(c, v);
30 destroy_cgreen_valuecxx . . $ destroy_cgreen_value(2cf67620db0eb1fe).(v);
31 return r;
32 }
33
34 static boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! compare_double_constraintcxx . . $ compare_double_constraint(851ce9690ed9107e).(Constraintcxx . . $ Constraint# *c, double x) {
35 CgreenValuecxx . . $ CgreenValue# v = make_cgreen_double_valuecxx . . $ make_cgreen_double_value(4e2bf7528ffbaa1f).(x);
36 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! r = (*c->comparecxx . . $ Constraint_#compare.)(c, v);
37 destroy_cgreen_valuecxx . . $ destroy_cgreen_value(2cf67620db0eb1fe).(v);
38 return r;
39 }
40
41 Describecxx . . $ `include/cgreen/unit.h:12:9`!(Constraint);
42 BeforeEachcxx . . $ `include/cgreen/unit.h:15:9`!(Constraint) {}
43 AfterEachcxx . . $ `include/cgreen/unit.h:18:9`!(Constraint) {}
44
45 Ensurecxx . . $ CgreenTest#(Constraint, default_destroy_clears_state) {
46 Constraintcxx . . $ Constraint# *constraint = create_constraintcxx . . $ create_constraint(ba55e2de72051eb6).();
47 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(constraint);
48
49 /* these tests correctly trip valgrind's use-after-free check, so
50 * uncomment and check manually
51
52 assert_that(constraint->name, NULL);
53 assert_that(constraint->parameter, NULL);
54 assert_that(constraint->storedValue, NULL);
55 assert_that(constraint->test, NULL);
56 assert_that(constraint->compare, NULL);
57 assert_that(constraint->destroy, NULL);
58 */
59 }
60
61 Ensurecxx . . $ CgreenSpec__Constraint__parameter_name_matches_correctly__.(Constraint, parameter_name_matches_correctly) {
62 Constraintcxx . . $ Constraint# *constraint =
63 create_constraintcxx . . $ create_constraint(ba55e2de72051eb6).();
64 constraint->typecxx . . $ Constraint_#type. = CGREEN_VALUE_COMPARER_CONSTRAINTcxx . . $ CGREEN_VALUE_COMPARER_CONSTRAINT.;
65 constraint->parameter_namecxx . . $ Constraint_#parameter_name. = "label";
66
67 assert_thatcxx . . $ `include/cgreen/assertions.h:30:9`!(constraint_is_not_for_parameter(constraint, "wrong_label"), is_truecxx . . $ `include/cgreen/constraint_syntax_helpers.h:33:9`!);
68 assert_thatcxx . . $ cgreen/assert_that_(b064aa216885589).(constraint_is_not_for_parameter(constraint, "label"), is_falsecxx . . $ `include/cgreen/constraint_syntax_helpers.h:32:9`!);
69
70 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(constraint);
71 }
72
73 Ensurecxx . . $ CgreenSpec__Constraint__compare_contents_is_correct_on_larger_than_intptr_array__.(Constraint, compare_contents_is_correct_on_larger_than_intptr_array) {
74 int content[] = { 0, 1, 2, 3, 4, 5, 6, 7 ,8 ,9, 10, 11, 12, 13, 14, 15 };
75 int also_content[] = { 0, 1, 2, 3, 4, 5, 6, 7 ,8 ,9, 10, 11, 12, 13, 14, 15 };
76 Constraintcxx . . $ Constraint# *is_equal_to_contents_constraint =
77 create_equal_to_contents_constraintcxx . . $ create_equal_to_contents_constraint(329cc2776ae464c5).(content, sizeof(content), "content");
78
79 int not_content[] = { 0, 1, 2, 3, 4, 5, 6, 7, 108, 109, 110, 111, 112, 113, 114, 115 };
80 assert_thatcxx . . $ cgreen/assert_that_(b064aa216885589).(compare_pointer_constraint(is_equal_to_contents_constraint, also_content), is_truecxx . . $ `include/cgreen/constraint_syntax_helpers.h:33:9`!);
81 assert_thatcxx . . $ cgreen/(compare_pointer_constraint(is_equal_to_contents_constraint, not_content), is_falsecxx . . $ `include/cgreen/constraint_syntax_helpers.h:32:9`!);
82
83 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(is_equal_to_contents_constraint);
84 }
85
86 Ensurecxx . . $ `include/cgreen/unit.h:25:9`!(Constraint, compare_is_correct_when_using_integers) {
87 Constraintcxx . . $ Constraint# *is_equal_to_37 = create_equal_to_value_constraintcxx . . $ create_equal_to_value_constraint(f83092978cf2a14d).(37, "37");
88
89 assert_thatcxx . . $ cgreen/assert_that_(b064aa216885589).(compare_integer_constraint(is_equal_to_37, 37), is_truecxx . . $ `include/cgreen/constraint_syntax_helpers.h:33:9`!);
90 assert_thatcxx . . $ cgreen/assert_that_(b064aa216885589).(compare_integer_constraint(is_equal_to_37, 36), is_falsecxx . . $ `include/cgreen/constraint_syntax_helpers.h:32:9`!);
91
92 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(is_equal_to_37);
93 }
94
95 Ensurecxx . . $ CgreenTest#(Constraint, compare_to_is_null_correctly) {
96 assert_thatcxx . . $ cgreen/(0, is_nullcxx . . $ `include/cgreen/constraint_syntax_helpers.h:31:9`!);
97 assert_thatcxx . . $ cgreen/assert_that_(b064aa216885589).(14, is_not_nullcxx . . $ `include/cgreen/constraint_syntax_helpers.h:30:9`!);
98 }
99
100 Ensurecxx . . $ CgreenTest#(Constraint, string_constraint_destroy_clears_state) {
101 Constraintcxx . . $ Constraint# *string_constraint =
102 create_equal_to_string_constraintcxx . . $ create_equal_to_string_constraint(6f3cd94f7e4cc57).("Hello", "user_greeting");
103 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(string_constraint);
104
105 /* these checks correctly trip valgrind's use-after-free check, so
106 * uncomment and check manually
107
108 assert_that(string_constraint->name, is_null);
109 assert_that(string_constraint->parameter, is_null);
110 assert_that(string_constraint->storedValue, is_null);
111 assert_that(string_constraint->test, is_null);
112 assert_that(string_constraint->compare, is_null);
113 assert_that(string_constraint->destroy, is_null);
114 */
115 }
116
117 Ensurecxx . . $ CgreenSpec__Constraint__matching_strings_as_equal__.(Constraint, matching_strings_as_equal) {
118 Constraintcxx . . $ Constraint# *equals_string_hello_constraint =
119 create_equal_to_string_constraintcxx . . $ create_equal_to_string_constraint(6f3cd94f7e4cc57).("Hello", "user_greeting");
120
121 assert_thatcxx . . $ cgreen/assert_that_(b064aa216885589).(compare_string_constraint(equals_string_hello_constraint, "Hello"), is_truecxx . . $ `include/cgreen/constraint_syntax_helpers.h:33:9`!);
122 assert_thatcxx . . $ `include/cgreen/assertions.h:30:9`!(compare_string_constraint(equals_string_hello_constraint, "Goodbye"), is_falsecxx . . $ `include/cgreen/constraint_syntax_helpers.h:32:9`!);
123
124 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(equals_string_hello_constraint);
125 }
126
127 Ensurecxx . . $ Constraint__matching_beginning_of_string(49f6e7a06ebc5aa8).(Constraint, matching_beginning_of_string) {
128 Constraintcxx . . $ Constraint# *beginning_of_string_hello_constraint =
129 create_begins_with_string_constraintcxx . . $ create_begins_with_string_constraint(6f3cd94f7e4cc57).("Hell", "user_greeting");
130
131 assert_thatcxx . . $ cgreen/assert_that_(b064aa216885589).(compare_string_constraint(beginning_of_string_hello_constraint, "Hello"), is_truecxx . . $ `include/cgreen/constraint_syntax_helpers.h:33:9`!);
132 assert_thatcxx . . $ intptr_t#(compare_string_constraint(beginning_of_string_hello_constraint, "Goodbye"), is_falsecxx . . $ `include/cgreen/constraint_syntax_helpers.h:32:9`!);
133
134 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(beginning_of_string_hello_constraint);
135 }
136
137 Ensurecxx . . $ CgreenSpec__Constraint__not_matching_beginning_of_string__.(Constraint, not_matching_beginning_of_string) {
138 Constraintcxx . . $ Constraint# *beginning_of_string_hello_constraint =
139 create_does_not_begin_with_string_constraintcxx . . $ create_does_not_begin_with_string_constraint(6f3cd94f7e4cc57).("Goodby", "user_greeting");
140
141 assert_thatcxx . . $ cgreen/(compare_string_constraint(beginning_of_string_hello_constraint, "Hello"), is_truecxx . . $ `include/cgreen/constraint_syntax_helpers.h:33:9`!);
142 assert_thatcxx . . $ cgreen/assert_that_(b064aa216885589).(compare_string_constraint(beginning_of_string_hello_constraint, "Goodbye"), is_falsecxx . . $ `include/cgreen/constraint_syntax_helpers.h:32:9`!);
143
144 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(beginning_of_string_hello_constraint);
145 }
146
147 Ensurecxx . . $ CgreenTest#(Constraint, matching_end_of_string) {
148 Constraintcxx . . $ Constraint# *end_of_string_hello_constraint =
149 create_ends_with_string_constraintcxx . . $ create_ends_with_string_constraint(6f3cd94f7e4cc57).("ello", "user_greeting");
150
151 assert_thatcxx . . $ intptr_t#(compare_string_constraint(end_of_string_hello_constraint, "Hello"), is_truecxx . . $ `include/cgreen/constraint_syntax_helpers.h:33:9`!);
152 assert_thatcxx . . $ `include/cgreen/assertions.h:30:9`!(compare_string_constraint(end_of_string_hello_constraint, "Goodbye"), is_falsecxx . . $ `include/cgreen/constraint_syntax_helpers.h:32:9`!);
153 assert_thatcxx . . $ cgreen/assert_that_(b064aa216885589).(compare_string_constraint(end_of_string_hello_constraint, "Hello ello"), is_truecxx . . $ `include/cgreen/constraint_syntax_helpers.h:33:9`!);
154
155 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(end_of_string_hello_constraint);
156 }
157
158 Ensurecxx . . $ Constraint__not_matching_end_of_string(49f6e7a06ebc5aa8).(Constraint, not_matching_end_of_string) {
159 Constraintcxx . . $ Constraint# *end_of_string_hello_constraint =
160 create_does_not_end_with_string_constraintcxx . . $ create_does_not_end_with_string_constraint(6f3cd94f7e4cc57).("oodbye", "user_greeting");
161
162 assert_thatcxx . . $ `include/cgreen/assertions.h:30:9`!(compare_string_constraint(end_of_string_hello_constraint, "Hello"), is_truecxx . . $ `include/cgreen/constraint_syntax_helpers.h:33:9`!);
163 assert_thatcxx . . $ cgreen/(compare_string_constraint(end_of_string_hello_constraint, "Goodbye"), is_falsecxx . . $ `include/cgreen/constraint_syntax_helpers.h:32:9`!);
164
165 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(end_of_string_hello_constraint);
166 }
167
168 Ensurecxx . . $ Constraint__matching_null_string_against_non_null_string(49f6e7a06ebc5aa8).(Constraint, matching_null_string_against_non_null_string) {
169 Constraintcxx . . $ Constraint# *equals_string_hello_constraint =
170 create_equal_to_string_constraintcxx . . $ create_equal_to_string_constraint(6f3cd94f7e4cc57).("Hello", "user_greeting");
171
172 assert_thatcxx . . $ `include/cgreen/assertions.h:30:9`!(compare_string_constraint(equals_string_hello_constraint, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!), is_falsecxx . . $ `include/cgreen/constraint_syntax_helpers.h:32:9`!);
173
174 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(equals_string_hello_constraint);
175 }
176
177 Ensurecxx . . $ CgreenTest#(Constraint, matching_against_null_string) {
178 Constraintcxx . . $ Constraint# *equals_null_string_constraint =
179 create_equal_to_string_constraintcxx . . $ create_equal_to_string_constraint(6f3cd94f7e4cc57).((const char *)NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:416:9`!, "user_greeting");
180
181 assert_thatcxx . . $ `include/cgreen/assertions.h:30:9`!(compare_string_constraint(equals_null_string_constraint, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!), is_truecxx . . $ `include/cgreen/constraint_syntax_helpers.h:33:9`!);
182 assert_thatcxx . . $ cgreen/assert_that_(b064aa216885589).(compare_string_constraint(equals_null_string_constraint, "Hello"), is_falsecxx . . $ `include/cgreen/constraint_syntax_helpers.h:32:9`!);
183
184 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(equals_null_string_constraint);
185 }
186
187 Ensurecxx . . $ CgreenTest#(Constraint, matching_doubles_as_equal_with_default_significance) {
188 Constraintcxx . . $ Constraint# *equal_to_double_37 = create_equal_to_double_constraintcxx . . $ create_equal_to_double_constraint(fadb8cf50565de40).(37.0, "height");
189
190 assert_thatcxx . . $ `include/cgreen/assertions.h:30:9`!(compare_double_constraint(equal_to_double_37, 37.0), is_truecxx . . $ `include/cgreen/constraint_syntax_helpers.h:33:9`!);
191 assert_thatcxx . . $ intptr_t#(compare_double_constraint(equal_to_double_37, 36.0), is_falsecxx . . $ `include/cgreen/constraint_syntax_helpers.h:32:9`!);
192
193 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(equal_to_double_37);
194 }
195
196 Ensurecxx . . $ contextForConstraint.(Constraint, matching_doubles_respects_significant_figure_setting) {
197 Constraintcxx . . $ Constraint# *want_337 = create_equal_to_double_constraintcxx . . $ create_equal_to_double_constraint(fadb8cf50565de40).(337.0, "height");
198
199 significant_figures_for_assert_double_arecxx . . $ significant_figures_for_assert_double_are(d4f767463ce0a6b3).(2);
200 assert_thatcxx . . $ compare_double_constraint(851ce9690ed9107e).(compare_double_constraint(want_337, 339.0), is_truecxx . . $ `include/cgreen/constraint_syntax_helpers.h:33:9`!);
201
202 significant_figures_for_assert_double_arecxx . . $ significant_figures_for_assert_double_are(d4f767463ce0a6b3).(3);
203 assert_thatcxx . . $ intptr_t#(compare_double_constraint(want_337, 339.0), is_falsecxx . . $ `include/cgreen/constraint_syntax_helpers.h:32:9`!);
204
205 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(want_337);
206 }
207
208 // TODO: convert to create_constraint_for_comparator("non-empty string", &is_non_empty_string);
209 //typedef struct {
210 // char* value;
211 // unsigned int length;
212 //} String;
213 //
214 //static int is_non_empty_string(const void* other) {
215 // String* our = (String*)other;
216 // return our->length != 0;
217 //}
218 //
219 //Ensure(Constraint, unequal_structs_with_same_value_for_specific_field_compare_true) {
220 // String name;
221 // name.value = "bob";
222 // name.length = 3;
223 //
224 // Constraint *string_constraint = with(name, is_non_empty_string);
225 //
226 // assert_that(compare_constraint(string_constraint, is_non_empty_string), is_equal_to(1));
227 //
228 // destroy_constraint(string_constraint);
229 //
230 // name.value = "tim";
231 // name.length = 3;
232 //
233 // string_constraint = with(name, is_non_empty_string);
234 // assert_that(compare_constraint(string_constraint, is_non_empty_string), is_equal_to(1));
235 //
236 // destroy_constraint(string_constraint);
237 //}
238
239
240 /* these misuse scenarios should be prevented by checks in higher-level constructs */
241 #ifdef CANNOT_CREATE_NULL_CONSTRAINTS
242 Ensure(Constraint, cannot_create_contents_constraint_with_null_content) {
243 const size_t NON_ZERO = !0;
244 Constraint *is_equal_to_contents_constraint = create_equal_to_contents_constraint(NULL, NON_ZERO, "NULL");
245
246 assert_that(is_equal_to_contents_constraint, is_null);
247 }
248
249 Ensure(Constraint, cannot_create_contents_constraint_with_zero_size) {
250 int content[] = { 0, 1, 2, 3, 4, 5, 6, 7 };
251 Constraint *is_equal_to_contents_constraint = create_equal_to_contents_constraint(content, 0, "content");
252
253 assert_that(is_equal_to_contents_constraint, is_null);
254 }
255 #endif
256
257 Ensurecxx . . $ CgreenTest#(Constraint, compare_equal_to_contents_is_false_on_null) {
258 int content[] = { 0, 1, 2, 3, 4, 5, 6, 7 };
259 Constraintcxx . . $ Constraint# *is_equal_to_contents_constraint =
260 create_equal_to_contents_constraintcxx . . $ create_equal_to_contents_constraint(329cc2776ae464c5).(content, sizeof(content), "content");
261
262 assert_thatcxx . . $ `include/cgreen/assertions.h:30:9`!(compare_pointer_constraint(is_equal_to_contents_constraint, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:416:9`!), is_falsecxx . . $ `include/cgreen/constraint_syntax_helpers.h:32:9`!);
263
264 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(is_equal_to_contents_constraint);
265 }
266
267 Ensurecxx . . $ CgreenSpec__Constraint__compare_not_equal_to_contents_is_false_on_null__.(Constraint, compare_not_equal_to_contents_is_false_on_null) {
268 int content[] = { 0, 1, 2, 3, 4, 5, 6, 7 };
269 Constraintcxx . . $ Constraint# *is_not_equal_to_contents =
270 create_not_equal_to_contents_constraintcxx . . $ create_not_equal_to_contents_constraint(329cc2776ae464c5).(content, sizeof(content), "content");
271
272 assert_thatcxx . . $ cgreen/assert_that_(b064aa216885589).(compare_pointer_constraint(is_not_equal_to_contents, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!), is_falsecxx . . $ `include/cgreen/constraint_syntax_helpers.h:32:9`!);
273
274 destroy_constraintcxx . . $ destroy_constraint(f159a969fe179808).(is_not_equal_to_contents);
275 }
276
277 Ensurecxx . . $ Constraint__can_compare_to_hex(49f6e7a06ebc5aa8).(Constraint, can_compare_to_hex) {
278 char chars[3];
279 memsetcxx . . $ memset(d1de1e4fb215f1c6).(chars, 0xaa, sizeof(chars));
280 assert_thatcxx . . $ intptr_t#((unsigned char)chars[0], is_equal_to_hexcxx . . $ `include/cgreen/constraint_syntax_helpers.h:27:9`!(0xaa));
281 }
282
283 TestSuitecxx . . $ TestSuite# *constraint_testscxx . . $ constraint_tests(564401a81ded3a53).(void) {
284 TestSuitecxx . . $ TestSuite# *suite = create_test_suitecxx . . $ `include/cgreen/suite.h:20:9`!();
285 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, default_destroy_clears_state);
286 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, parameter_name_matches_correctly);
287 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, compare_contents_is_correct_on_larger_than_intptr_array);
288 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, compare_is_correct_when_using_integers);
289 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, compare_to_is_null_correctly);
290 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, string_constraint_destroy_clears_state);
291 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, matching_strings_as_equal);
292 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, matching_beginning_of_string);
293 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, not_matching_beginning_of_string);
294 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, matching_end_of_string);
295 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, not_matching_end_of_string);
296 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, matching_null_string_against_non_null_string);
297 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, matching_against_null_string);
298 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, matching_doubles_as_equal_with_default_significance);
299 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, matching_doubles_respects_significant_figure_setting);
300 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, compare_equal_to_contents_is_false_on_null);
301 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, compare_not_equal_to_contents_is_false_on_null);
302 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, Constraint, can_compare_to_hex);
303 // add_test_with_context(suite, Constraint, unequal_structs_with_same_value_for_specific_field_compare_true);
304
305 return suite;
306 }