Skip to content

Add tests to topic-3-13-more-practice-coding.rst #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ In the following exercises which are similar to the Free Response Questions (FRQ
+----------------------------------------------------+-----------------+
| ``alarmClock(0, false)`` | ``10:00`` |
+----------------------------------------------------+-----------------+

| ``alarmClock(6, true)`` | ``off`` |
+----------------------------------------------------+-----------------+
| ``alarmClock(4, true)`` | ``10:00`` |
+----------------------------------------------------+-----------------+
~~~~
public class VacayAlarmClock
{
Expand All @@ -193,6 +196,8 @@ In the following exercises which are similar to the Free Response Questions (FRQ
System.out.println(alarmClock(1, false));
System.out.println(alarmClock(5, false));
System.out.println(alarmClock(0, false));
System.out.println(alarmClock(6, true));
System.out.println(alarmClock(4, true));
}
}

Expand All @@ -210,7 +215,7 @@ In the following exercises which are similar to the Free Response Questions (FRQ
@Test
public void testBoundarySum() throws IOException {
String output = getMethodOutput("main");
String expect = "7:00, 7:00, 10:00";
String expect = "7:00, 7:00, 10:00, off, 10:00";
boolean passed = getResults(expect, output, "Expected output from main");
assertTrue(passed);

Expand Down