Browse Source

Checked markdown, added diagnostics

Rafael Arce Nazario 9 years ago
parent
commit
c7f8e96a48
1 changed files with 30 additions and 11 deletions
  1. 30
    11
      README.md

+ 30
- 11
README.md View File

@@ -152,6 +152,14 @@ void test_rangoEdad() {
152 152
 
153 153
 ---
154 154
 
155
+!INCLUDE "../../eip-diagnostic/testing/es/diag-testing-01.html"
156
+
157
+!INCLUDE "../../eip-diagnostic/testing/es/diag-testing-02.html"
158
+
159
+---
160
+
161
+---
162
+
155 163
 
156 164
 ##Sesión de laboratorio:
157 165
 
@@ -482,6 +490,8 @@ The program will not execute the remaining instructions after line 8.
482 490
 
483 491
 
484 492
 Suppose that  you want to automate the validation of the `ageRange`. One way to do it is by  implementing and calling a function that calls the `ageRange` function with different arguments and verifies that each returned value is equal to  the expected result. If the `ageRange` function returns a value that is not expected, the testing function aborts the program and reports the test that failed. The following illustrates a function to test the `ageRange` function. Observe that it consists of one assert per each of the tests we had listed earlier. 
493
+
494
+
485 495
 ---
486 496
 
487 497
 ```cpp
@@ -500,10 +510,20 @@ void test_ageRange() {
500 510
 **Figure 3.** Example of a test function using `assert`.
501 511
 
502 512
 
513
+
514
+---
515
+
516
+---
517
+
518
+!INCLUDE "../../eip-diagnostic/testing/en/diag-testing-01.html"
519
+
520
+!INCLUDE "../../eip-diagnostic/testing/en/diag-testing-02.html"
521
+
503 522
 ---
504 523
 
505 524
 ---
506 525
 
526
+
507 527
 ##Laboratory Session:
508 528
 
509 529
 ###Exercise 1: Designing tests by hand:
@@ -600,19 +620,18 @@ In this exercise you will be designing tests to validate various versions of the
600 620
     For example, you could organize your answers in a table like the following:
601 621
 
602 622
 
603
-     ---
604
-
605
-
606
-     | 3 Sorts |                           |                           |           |            |            |
607
-     |---------|---------------------------|---------------------------|-----------|------------|------------|
608
-     | Num     | Test                    | Alpha Result              | Beta Result | Gamma Result | Delta   Result |
609
-     | 1       | "deer", "coyote", "fox" | "coyote", "deer", "fox" | ....      | ....       |            |
610
-     | 2       | "deer", "fox", "coyote" | "fox", "deer", "coyote" | ....      | ....       |            |
611
-     | ....    | ....                      | ....                      | ....      | ....       | ....       |
623
+  ---
612 624
 
613
-     **Figure 10** - Table to organize the test results.
625
+  | 3 Sorts |                           |                           |           |            |            |
626
+  |---------|---------------------------|---------------------------|-----------|------------|------------|
627
+  | Num     | Test                    | Alpha Result              | Beta Result | Gamma Result | Delta   Result |
628
+  | 1       | "deer", "coyote", "fox" | "coyote", "deer", "fox" | ....      | ....       |            |
629
+  | 2       | "deer", "fox", "coyote" | "fox", "deer", "coyote" | ....      | ....       |            |
630
+  | ....    | ....                      | ....                      | ....      | ....       | ....       |
631
+  
632
+  **Figure 10** - Table to organize the test results.
614 633
 
615
-     ---
634
+  ---
616 635
 
617 636
 You can see examples of how to organize your results [here](http://i.imgur.com/ggDZ3TQ.png) and [here](http://i.imgur.com/rpApVqm.png).
618 637