@@ -531,17 +531,29 @@ You can leave out TEST_GROUP_C_SETUP() / TEST_GROUP_C_TEARDOWN() and TEST_GROUP_
531
531
The following assertion macros are supported in the pure C interface:
532
532
533
533
{% highlight c++ %}
534
+ CHECK_EQUAL_C_BOOL(expected,actual);
534
535
CHECK_EQUAL_C_INT(expected,actual);
536
+ CHECK_EQUAL_C_UINT(expected,actual);
537
+ CHECK_EQUAL_C_LONG(expected,actual);
538
+ CHECK_EQUAL_C_ULONG(expected,actual);
539
+ CHECK_EQUAL_C_LONGLONG(expected,actual);
540
+ CHECK_EQUAL_C_ULONGLONG(expected,actual);
535
541
CHECK_EQUAL_C_REAL(expected,actual,threshold);
536
542
CHECK_EQUAL_C_CHAR(expected,actual);
543
+ CHECK_EQUAL_C_UBYTE(expected,actual);
544
+ CHECK_EQUAL_C_SBYTE(expected,actual);
537
545
CHECK_EQUAL_C_STRING(expected,actual);
538
546
CHECK_EQUAL_C_POINTER(expected,actual); /* v3.8 * /
539
547
CHECK_EQUAL_C_BITS(expected, actual, mask); /* v3.8, pending * /
540
548
FAIL_TEXT_C(text);
541
549
FAIL_C();
542
550
CHECK_C(condition);
551
+ CHECK_C_TEXT(condition, text);
543
552
{% endhighlight %}
544
553
554
+ * NOTE* LONGLONG assertions are disabled by default.
555
+ * NOTE2* All macros have _ TEXT() equivalents like CHECK_C_TEXT(), which are not explicitly listed here.
556
+
545
557
These macros ensure tests get terminated in a way appropriate for pure C code.
546
558
547
559
<a id =" gmock " > </a >
0 commit comments