Skip to content

Commit e2ce88d

Browse files
committed
Fix function name case in SleepIn assignment
1 parent 445b198 commit e2ce88d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/src/main/java/assignments/booleans1/SleepIn.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ private static boolean sleepIn(boolean weekday, boolean vacation) {
99
return false; // return whether you should sleep in today.
1010
}
1111

12-
private static void TestSleepIn(boolean weekday, boolean vacation, boolean expected) {
12+
private static void testSleepIn(boolean weekday, boolean vacation, boolean expected) {
1313
boolean result = sleepIn(weekday, vacation);
1414
boolean pass = result == expected;
1515
System.out.printf(
16-
"SleepIn(%b, %b) -> %b | %b | %s \n",
16+
"sleepIn(%b, %b) -> %b | %b | %s \n",
1717
weekday, vacation, expected, result, pass ? "OK " : "X ");
1818
}
1919

2020
public static void main(String[] args) {
2121
System.out.println("Function Call -> Expected | Yours | Pass?\n");
22-
TestSleepIn(false, false, true);
23-
TestSleepIn(true, false, false);
24-
TestSleepIn(false, true, true);
25-
TestSleepIn(true, true, true);
22+
testSleepIn(false, false, true);
23+
testSleepIn(true, false, false);
24+
testSleepIn(false, true, true);
25+
testSleepIn(true, true, true);
2626
}
2727
}

0 commit comments

Comments
 (0)