]> granicus.if.org Git - check/commitdiff
* fix up description of how ck_assert_msg behaves
authorcpickett <cpickett@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 6 Feb 2013 21:09:03 +0000 (21:09 +0000)
committercpickett <cpickett@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 6 Feb 2013 21:09:03 +0000 (21:09 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@691 64e312b2-a51f-0410-8e61-82d0ca0eb02a

doc/check.texi

index 7f01b130f034aa6172fd102274ab9c542417aaaf..b55151e55a592506f4da00a1f78a1cbe196de3c1 100644 (file)
@@ -561,11 +561,14 @@ ck_assert (money_amount (m) == 5);
 This is equivalent to:
 @example
 @verbatim
-ck_assert_msg (money_amount (m) == 5, 
-              "Assertion 'money_amount (m) == 5' failed");
+ck_assert_msg (money_amount (m) == 5, NULL);
 @end verbatim
 @end example
 
+which will print the file, line number, and the message
+@code{"Assertion 'money_amount (m) == 5' failed"} if
+@code{money_amount (m) != 5}.
+
 When we try to compile and run the test suite now using @command{make
 check}, we get a whole host of compilation errors.  It may seem a bit
 strange to deliberately write code that won't compile, but notice what