]> mj.ucw.cz Git - libucw.git/blob - ucw/time.t
logoutput: Clean up --help message
[libucw.git] / ucw / time.t
1 # Tests for time-conf
2
3 Name:   Parser normal
4 Run:    ../obj/ucw/time-conf-t 'ftp://example.com/other'
5 In:     123
6         0.23
7         1e2
8         3k
9         1d
10 Out:    123000
11         230
12         100000
13         3000000
14         86400000
15
16 Name:   Parser underflow
17 Run:    ../obj/ucw/time-conf-t 'ftp://example.com/other'
18 In:     0.0001
19 Out:    Non-zero time rounds down to zero milliseconds
20
21 Name:   Parser overflow
22 Run:    ../obj/ucw/time-conf-t 'ftp://example.com/other'
23 In:     1e30
24 Out:    Time too large