A C Unit Test Library for C language.
Revisión | 504085f402e4dc9995c006ffeacc0aa0eea5a390 (tree) |
---|---|
Tiempo | 2010-08-21 18:07:57 |
Autor | tsntsumi <tsntsumi@user...> |
Commiter | tsntsumi |
Revised the figure of relations between test case and global variables.
@@ -342,12 +342,9 @@ If any fail, you'll get the following information: | ||
342 | 342 | @english |
343 | 343 | @japanese |
344 | 344 | 試しに @c testComplex.c のテストケースでわざと間違えてみましょう。 |
345 | -<code>!complex_equals</code> の <code>!</code> をとってみます。 | |
346 | 345 | @endif |
347 | 346 | |
348 | 347 | @code |
349 | -//* testComplex.c *\/ | |
350 | -//** test equals *\/ | |
351 | 348 | void test_complex_equals () |
352 | 349 | { |
353 | 350 | ... |
@@ -392,8 +389,8 @@ objects. To do this, use global variables. | ||
392 | 389 | これは大変単純なテストです。 |
393 | 390 | 通常、 |
394 | 391 | たくさんの小さなテスト関数を作って、 |
395 | -同じようなデータの集まりを使ってテストを行うことになるでしょう。 | |
396 | -つまり各テスト関数共通のグローバル変数を使うと便利です。 | |
392 | +同じようなデータの集まりを使ってテストを行うでしょう。 | |
393 | +つまり各テスト関数共通のグローバル変数を使うことになります。 | |
397 | 394 | @~ |
398 | 395 | |
399 | 396 | @english |
@@ -417,11 +414,13 @@ digraph TestCase { | ||
417 | 414 | gv [ label="Global Variables", shape=box ] |
418 | 415 | { rank=same; |
419 | 416 | tc1 [ label="Test case 1" ]; |
417 | + tc2 [ label="Test case 2" ]; | |
420 | 418 | tcn [ label="Test case n" ]; |
421 | 419 | } |
422 | 420 | gv -> tc1; |
421 | + gv -> tc2 [ weight=8 ]; | |
423 | 422 | gv -> tcn; |
424 | - tc1 -> tcn [ style=dotted, arrowtail=none ]; | |
423 | + tc2 -> tcn [ label="...", dir=none, color=white ]; | |
425 | 424 | } |
426 | 425 | @enddot |
427 | 426 |