tests: fix missing ? after v fmt run

pull/4665/head
Delyan Angelov 2020-05-01 12:01:30 +03:00
parent 84785bbb59
commit 59525c8c93
1 changed files with 2 additions and 2 deletions

View File

@ -22,14 +22,14 @@ fn test_stopwatch_time_between_pause_and_start_should_be_skipped_in_elapsed() {
time.sleep_ms(10)
// eprintln('${sw.elapsed().milliseconds()}ms')
assert sw.elapsed().milliseconds() >= 10
$if stopwatch {
$if stopwatch ? {
assert sw.elapsed().milliseconds() < 20
}
sw.start()
time.sleep_ms(10) // B
// Here, sw.elapsed() should be ~10ms (from A) + ~10ms (from B) >= 20ms
assert sw.elapsed().milliseconds() >= 20
$if stopwatch {
$if stopwatch ? {
assert sw.elapsed().milliseconds() < 30
}
}