• R/O
  • HTTP
  • SSH
  • HTTPS

ccunit: Commit

A C Unit Test Library for C language.


Commit MetaInfo

Revisión504085f402e4dc9995c006ffeacc0aa0eea5a390 (tree)
Tiempo2010-08-21 18:07:57
Autortsntsumi <tsntsumi@user...>
Commitertsntsumi

Log Message

Revised the figure of relations between test case and global variables.

Cambiar Resumen

Diferencia incremental

--- a/doc/cookbook.dox
+++ b/doc/cookbook.dox
@@ -342,12 +342,9 @@ If any fail, you'll get the following information:
342342 @english
343343 @japanese
344344 試しに @c testComplex.c のテストケースでわざと間違えてみましょう。
345-<code>!complex_equals</code> の <code>!</code> をとってみます。
346345 @endif
347346
348347 @code
349-//* testComplex.c *\/
350-//** test equals *\/
351348 void test_complex_equals ()
352349 {
353350 ...
@@ -392,8 +389,8 @@ objects. To do this, use global variables.
392389 これは大変単純なテストです。
393390 通常、
394391 たくさんの小さなテスト関数を作って、
395-同じようなデータの集まりを使ってテストを行うことになるでしょう。
396-つまり各テスト関数共通のグローバル変数を使うと便利です。
392+同じようなデータの集まりを使ってテストを行うでしょう。
393+つまり各テスト関数共通のグローバル変数を使うことになります。
397394 @~
398395
399396 @english
@@ -417,11 +414,13 @@ digraph TestCase {
417414 gv [ label="Global Variables", shape=box ]
418415 { rank=same;
419416 tc1 [ label="Test case 1" ];
417+ tc2 [ label="Test case 2" ];
420418 tcn [ label="Test case n" ];
421419 }
422420 gv -> tc1;
421+ gv -> tc2 [ weight=8 ];
423422 gv -> tcn;
424- tc1 -> tcn [ style=dotted, arrowtail=none ];
423+ tc2 -> tcn [ label="...", dir=none, color=white ];
425424 }
426425 @enddot
427426
Show on old repository browser