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:
parent
1ce295b683
commit
6995cc0234
@ -16,10 +16,11 @@ fn test_is_leap_year() {
|
|||||||
assert time.is_leap_year(1997) == false
|
assert time.is_leap_year(1997) == false
|
||||||
}
|
}
|
||||||
|
|
||||||
fn check(month, year, expectedDays int) bool {
|
fn check(month, year, expected int) bool {
|
||||||
return time.days_in_month(month, year) or {
|
res := time.days_in_month(month, year) or {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
return res == expected
|
||||||
}
|
}
|
||||||
|
|
||||||
fn test_days_in_month() {
|
fn test_days_in_month() {
|
||||||
|
Loading…
Reference in New Issue
Block a user