Skip to content

Commit 3767e26

Browse files
Update Tests.hs
1 parent 375537e commit 3767e26

File tree

1 file changed

+7
-7
lines changed
  • exercises/practice/square-root/test

1 file changed

+7
-7
lines changed

exercises/practice/square-root/test/Tests.hs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,28 @@ data Case = Case { description :: String
2424
}
2525

2626
cases :: [Case]
27-
cases = [ Case { description = "year not divisible by 4 in common year"
27+
cases = [ Case { description = "square root of 1"
2828
, input = 1
2929
, expected = 1
3030
}
31-
, Case { description = "year divisible by 2, not divisible by 4 in common year"
31+
, Case { description = "square root of 4"
3232
, input = 4
3333
, expected = 2
3434
}
35-
, Case { description = "year divisible by 4, not divisible by 100 in leap year"
35+
, Case { description = "square root of 25"
3636
, input = 25
3737
, expected = 5
3838
}
39-
, Case { description = "year divisible by 4 and 5 is still a leap year"
39+
, Case { description = "square root of 81"
4040
, input = 81
4141
, expected = 9
4242
}
43-
, Case { description = "year divisible by 100, not divisible by 400 in common year"
43+
, Case { description = "square root of 196"
4444
, input = 196
4545
, expected = 14
4646
}
47-
, Case { description = "year divisible by 100 but not by 3 is still not a leap year"
47+
, Case { description = "square root of 65025"
4848
, input = 65025
4949
, expected = 255
5050
}
51-
]
51+
]

0 commit comments

Comments
 (0)