Workshop o mikrokontrolérech na SKSP 2024.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
415 B

2 months ago
# Tests for time-conf
Name: Parser normal
Run: ../obj/ucw/time-conf-t 'ftp://example.com/other'
In: 123
0.23
1e2
3k
1d
Out: 123000
230
100000
3000000
86400000
Name: Parser underflow
Run: ../obj/ucw/time-conf-t 'ftp://example.com/other'
In: 0.0001
Out: Non-zero time rounds down to zero milliseconds
Name: Parser overflow
Run: ../obj/ucw/time-conf-t 'ftp://example.com/other'
In: 1e30
Out: Time too large