1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

time: fix test_days_in_month()

This commit is contained in:
Alexander Medvednikov 2019-07-14 16:47:02 +02:00
parent 1ce295b683
commit 6995cc0234

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() {