@endif
</li>
<li> @english When you want to check a value, call
- @link CCUNIT_ASSERT() CCUNIT_ASSERT(bool) @endlink
+ @link CCUNIT_ASSERT(bool) @endlink
and pass a bool that is true if the test succeeds
ASSERT macro is listed in others as well in
- @ref Assertions.
+ @link Assertions Assert Macros@endlink.
@japanese
Ãͤò¥Á¥§¥Ã¥¯¤·¤¿¤¤¾ì¹ç¤Ï¡¢
- @link CCUNIT_ASSERT() CCUNIT_ASSERT(bool) @endlink
+ @link CCUNIT_ASSERT(bool) @endlink
¤ò¸Æ¤Ó½Ð¤·¤Æ¡¢
¥Æ¥¹¥È¤¬À®¸ù¤¹¤ë¤Ê¤é¿¿¤òÊÖ¤¹¤è¤¦¤Ê¿¿µ¶ÃͤòÅϤ·¤Þ¤¹¡£
- ASSERT ´Ø·¸¤Î¥Þ¥¯¥í¤Ï¾¤Ë¤â@ref Assertions¤Ë¥ê¥¹¥È¤·¤Æ¤¢¤ê¤Þ¤¹¡£
+ ASSERT ´Ø·¸¤Î¥Þ¥¯¥í¤Ï¾¤Ë¤â
+ @link Assertions ASSERT ¥Þ¥¯¥í@endlink¤Ë¥ê¥¹¥È¤·¤Æ¤¢¤ê¤Þ¤¹¡£
@endif
</li>
</ol>
@dontinclude complex/testComplex.c
@skip test_complex_new
-@until }
-@skip test_complex_equals
+@until test_complex_equals
@until }
@english
@english
How do you run your tests and collect their results?
The TestCase store result of own tests into
-the @link CCUnitTestResult TestResult @endlink.
+the @link CCUnitTestResult TestResult@endlink.
@japanese
¥Æ¥¹¥È¤ò¼Â¹Ô¤·¤¿¤È¤¤Ë¡¢¤É¤¦¤ä¤Ã¤Æ¤½¤Î·ë²Ì¤ò½¸¤á¤¿¤éÎɤ¤¤Ç¤·¤ç¤¦¤«¡£
¥Æ¥¹¥È¥±¡¼¥¹¤Ï¥Æ¥¹¥È´Ø¿ô¤Î¼Â¹Ô·ë²Ì
@dot
digraph TestResult {
node [ fontsize=9, fontname=Helvetica ]
- TestRunner
- { rank=same;
- edge [ fontsize=9, fontname=Courier ]
- TestCase -> TestResult [ label="TestFailure", style=dotted, arrowhead=vee ];
- }
edge [ fontsize=9, dir=back ]
TestRunner -> TestCase [ label="Notify", fontname=Times,
style=dotted, arrowhead=vee ];
TestRunner -> TestResult [ arrowtail=none ];
+ { rank=same;
+ TestCase -> TestResult [
+ label="TestFailure", fontname=Courier,
+ dir=forward, style=dotted, arrowhead=vee
+ ];
+ }
TestCase -> "TestFunc 1..n";
TestResult -> "TestFailure 0..m" [ arrowtail=diamond ];
}