mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
tests: make error handling the same as the main function (#15825)
This commit is contained in:
parent
391ac12fe2
commit
41dbd12bc4
69 changed files with 193 additions and 192 deletions
|
@ -185,14 +185,14 @@ fn test_parse_rfc3339() {
|
|||
}
|
||||
}
|
||||
|
||||
fn test_ad_second_to_parse_result_in_2001() ? {
|
||||
fn test_ad_second_to_parse_result_in_2001() {
|
||||
now_tm := time.parse('2001-01-01 04:00:00')?
|
||||
future_tm := now_tm.add_seconds(60)
|
||||
assert future_tm.str() == '2001-01-01 04:01:00'
|
||||
assert now_tm.unix < future_tm.unix
|
||||
}
|
||||
|
||||
fn test_ad_second_to_parse_result_pre_2001() ? {
|
||||
fn test_ad_second_to_parse_result_pre_2001() {
|
||||
now_tm := time.parse('2000-01-01 04:00:00')?
|
||||
future_tm := now_tm.add_seconds(60)
|
||||
assert future_tm.str() == '2000-01-01 04:01:00'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue