Skip to content

Commit c5acbe1

Browse files
committed
The Time class now passes all of the TimeDriver tests.
1 parent 966c96c commit c5acbe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Time.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ Time::Time() {
1111
bool Time::setHours(int val) {
1212
if (val < 0) {
1313
hours = 0;
14-
return true;
14+
return false;
1515
}
1616

1717
hours = val;
18-
return false;
18+
return true;
1919
}
2020

2121
bool Time::setMinutes(int val) {

0 commit comments

Comments
 (0)