Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4a90144

Browse files
committed
unit test 1_2
1 parent 09b73d4 commit 4a90144

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

_sources/Unit1-Getting-Started/topic-1-10-practice-coding.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,8 @@ Unit 1 Coding Practice
106106
which has an R0 of 3. The first person spreads to 3 people, each of whom spread to 3 people, etc.
107107
Update the program with additional print statements to show the spread after 4 iterations of
108108
HIV (R0 of 4) and Measles (R0 of 16).
109-
Thankfully all of these diseases have vaccines available!
110109

111-
In Unit 4 we will see how to compute this efficiently using loops.
110+
In Unit 4 you will learn a better way to solve this problem using loops.
112111

113112
~~~~
114113
public class R0Spread
@@ -629,6 +628,11 @@ Unit 1 Coding Practice
629628
}
630629
}
631630
631+
632+
633+
634+
635+
632636
.. activecode:: code1_10_7
633637
:language: java
634638
:autograde: unittest

_sources/Unit1-Getting-Started/topic-1-2-java-intro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ expressions that have a numeric value.
469469
@Test
470470
public void test2() throws IOException
471471
{
472-
String target1 = " 3 + 5 - 1 + 8 -3";
472+
String target1 = "3 + 5 - 1 + 8 -3";
473473
boolean passed1 = checkCodeContains("passenger calculation", target1);
474474

475475
assertTrue(passed1);

0 commit comments

Comments
 (0)