0001 #include <cgreen/constraint_syntax_helpers.h>
0002 #include <cgreen/constraint.h>
0003 #include <cgreen/message_formatting.h>
0004 #ifndef __cplusplus
0005 #include <stdbool.h>
0006 #endif
0007 #include <stddef.h>
0008
0009 #ifdef __cplusplus
0010 namespace cgreen {
0011 #endif
0012
0013 Constraint static_is_non_null_constraint = {
0014 VALUE_COMPARER,
0015 "be non null",
0016 destroy_static_constraint,
0017 compare_do_not_want_value,
0018 test_want,
0019 failure_message_for,
0020 "",
0021 (intptr_t)NULL,
0022 "null",
0023 NULL,
0024 0
0025 };
0026
0027 Constraint static_is_null_constraint = {
0028 VALUE_COMPARER,
0029 "be null",
0030 destroy_static_constraint,
0031 compare_want_value,
0032 test_want,
0033 failure_message_for,
0034 "",
0035 (intptr_t)NULL,
0036 "null",
0037 NULL,
0038 0
0039 };
0040
0041 Constraint static_is_false_constraint = {
0042 VALUE_COMPARER,
0043 "be false",
0044 destroy_static_constraint,
0045 compare_want_value,
0046 test_want,
0047 failure_message_for,
0048 "",
0049 false,
0050 "false",
0051 NULL,
0052 0
0053 };
0054
0055 Constraint static_is_true_constraint = {
0056 VALUE_COMPARER,
0057 "be true",
0058 destroy_static_constraint,
0059 compare_want_value,
0060 test_want,
0061 failure_message_for,
0062 "",
0063 true,
0064 "true",
0065 NULL,
0066 0
0067 };
0068
0069 Constraint *is_non_null = &static_is_non_null_constraint;
0070 Constraint *is_null = &static_is_null_constraint;
0071 Constraint *is_false = &static_is_false_constraint;
0072 Constraint *is_true = &static_is_true_constraint;
0073
0074 #ifdef __cplusplus
0075 }
0076 #endif
0077
0078