Skip to content

Commit 04d6fef

Browse files
committed
clock: update to v2.4.0
per exercism/problem-specifications#1400
1 parent c2cc7d4 commit 04d6fef

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

exercises/clock/uClockTest.pas

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ interface
55
DUnitX.TestFramework;
66

77
const
8-
CanonicalVersion = '2.3.0';
8+
CanonicalVersion = '2.4.0';
99

1010
type
1111

@@ -80,6 +80,10 @@ TClockTest = class(TObject)
8080
[Ignore]
8181
procedure Negative_minutes_roll_over_continuously;
8282

83+
[Test]
84+
[Ignore]
85+
procedure Negative_sixty_minutes_is_previous_hour;
86+
8387
[Test]
8488
[Ignore]
8589
procedure Negative_hour_and_minutes_both_roll_over;
@@ -318,6 +322,11 @@ procedure TClockTest.Negative_minutes_roll_over_continuously;
318322
Assert.AreEqual('16:40', Clock.SetHands(1, -4820).ToString);
319323
end;
320324

325+
procedure TClockTest.Negative_sixty_minutes_is_previous_hour;
326+
begin
327+
Assert.AreEqual('01:00', Clock.SetHands(2, -60).ToString);
328+
end;
329+
321330
procedure TClockTest.Negative_hour_and_minutes_both_roll_over;
322331
begin
323332
Assert.AreEqual('20:20', Clock.SetHands(-25, -160).ToString);

0 commit comments

Comments
 (0)