time: fix test_days_in_month()

pull/1141/head
Alexander Medvednikov 2019-07-14 16:47:02 +02:00
parent 1ce295b683
commit 6995cc0234
1 changed files with 3 additions and 2 deletions

View File

@ -16,10 +16,11 @@ fn test_is_leap_year() {
assert time.is_leap_year(1997) == false
}
fn check(month, year, expectedDays int) bool {
return time.days_in_month(month, year) or {
fn check(month, year, expected int) bool {
res := time.days_in_month(month, year) or {
return false
}
return res == expected
}
fn test_days_in_month() {