Skip to content

Commit f88e6a4

Browse files
sharnosshine
authored andcommitted
space-age: upgrade tests to 1.2.0 (#860)
restrict seconds to fit within 32-bit int range exercism/problem-specifications#1441
1 parent 735481a commit f88e6a4

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

exercises/space-age/package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: space-age
2-
version: 1.1.0.5
2+
version: 1.2.0.6
33

44
dependencies:
55
- base

exercises/space-age/test/Tests.hs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ cases = [ Case { description = "Earth"
5151
}
5252
, Case { description = "Mars"
5353
, planet = Mars
54-
, seconds = 2329871239
55-
, expected = 39.25
54+
, seconds = 2129871239
55+
, expected = 35.88
5656
}
5757
, Case { description = "Jupiter"
5858
, planet = Jupiter
@@ -61,17 +61,17 @@ cases = [ Case { description = "Earth"
6161
}
6262
, Case { description = "Saturn"
6363
, planet = Saturn
64-
, seconds = 3000000000
65-
, expected = 3.23
64+
, seconds = 2000000000
65+
, expected = 2.15
6666
}
6767
, Case { description = "Uranus"
6868
, planet = Uranus
69-
, seconds = 3210123456
70-
, expected = 1.21
69+
, seconds = 1210123456
70+
, expected = 0.46
7171
}
7272
, Case { description = "Neptune"
7373
, planet = Neptune
74-
, seconds = 8210123456
75-
, expected = 1.58
74+
, seconds = 1821023456
75+
, expected = 0.35
7676
}
7777
]

0 commit comments

Comments
 (0)