source: tests/configs/.expect/parsenums.txt @ fd90096

ADTast-experimental
Last change on this file since fd90096 was fd90096, checked in by Thierry Delisle <tdelisle@…>, 23 months ago

Added tests for parse args of bools and numbers

  • Property mode set to 100644
File size: 5.0 KB
Line 
1no arg:
2int                :-3
3unsigned           :3
4unsigned long      :3
5unsigned long long :3
6double             :3.3
7Child status:
8    WIFEXITED   : 1    WEXITSTATUS : 0    WIFSIGNALED : 0    WTERMSIG    : 0    WCOREDUMP   : 0    WIFSTOPPED  : 0    WSTOPSIG    : 0    WIFCONTINUED: 0
9
10all 0 arg:
11int                :0
12unsigned           :0
13unsigned long      :0
14unsigned long long :0
15double             :0.
16Child status:
17    WIFEXITED   : 1    WEXITSTATUS : 0    WIFSIGNALED : 0    WTERMSIG    : 0    WCOREDUMP   : 0    WIFSTOPPED  : 0    WSTOPSIG    : 0    WIFCONTINUED: 0
18
19negative vals arg:
20int                :-1
21unsigned           :3
22unsigned long      :3
23unsigned long long :3
24double             :-1.
25Child status:
26    WIFEXITED   : 1    WEXITSTATUS : 0    WIFSIGNALED : 0    WTERMSIG    : 0    WCOREDUMP   : 0    WIFSTOPPED  : 0    WSTOPSIG    : 0    WIFCONTINUED: 0
27
28funky notation arg:
29int                :16
30unsigned           :32
31unsigned long      :768
32unsigned long long :16384
33double             :5000000.
34Child status:
35    WIFEXITED   : 1    WEXITSTATUS : 0    WIFSIGNALED : 0    WTERMSIG    : 0    WCOREDUMP   : 0    WIFSTOPPED  : 0    WSTOPSIG    : 0    WIFCONTINUED: 0
36
37big values arg:
38int                :2147483647
39unsigned           :4294967295
40unsigned long      :4294967295
41unsigned long long :18446744073709551615
42double             :5000000.
43Child status:
44    WIFEXITED   : 1    WEXITSTATUS : 0    WIFSIGNALED : 0    WTERMSIG    : 0    WCOREDUMP   : 0    WIFSTOPPED  : 0    WSTOPSIG    : 0    WIFCONTINUED: 0
45
46too big values arg:
47Argument '2147483648' for option i could not be parsed
48
49Usage:
50  parsebools [OPTIONS]...
51testing bool parameters
52  -i, --int                test int
53  -u, --unsigned           test unsigned
54  -l, --unsignedlong       test unsigned long
55  -L, --unsignedlonglong   test unsigned long long
56  -d, --double             test double
57  -h, --help               print this help message
58Child status:
59    WIFEXITED   : 1    WEXITSTATUS : 1    WIFSIGNALED : 0    WTERMSIG    : 0    WCOREDUMP   : 0    WIFSTOPPED  : 0    WSTOPSIG    : 1    WIFCONTINUED: 0
60
61Argument '4294967296' for option u could not be parsed
62
63Usage:
64  parsebools [OPTIONS]...
65testing bool parameters
66  -i, --int                test int
67  -u, --unsigned           test unsigned
68  -l, --unsignedlong       test unsigned long
69  -L, --unsignedlonglong   test unsigned long long
70  -d, --double             test double
71  -h, --help               print this help message
72Child status:
73    WIFEXITED   : 1    WEXITSTATUS : 1    WIFSIGNALED : 0    WTERMSIG    : 0    WCOREDUMP   : 0    WIFSTOPPED  : 0    WSTOPSIG    : 1    WIFCONTINUED: 0
74
75int                :-3
76unsigned           :3
77unsigned long      :4294967296
78unsigned long long :3
79double             :3.3
80Child status:
81    WIFEXITED   : 1    WEXITSTATUS : 0    WIFSIGNALED : 0    WTERMSIG    : 0    WCOREDUMP   : 0    WIFSTOPPED  : 0    WSTOPSIG    : 0    WIFCONTINUED: 0
82
83Argument '18446744073709551616' for option L could not be parsed
84
85Usage:
86  parsebools [OPTIONS]...
87testing bool parameters
88  -i, --int                test int
89  -u, --unsigned           test unsigned
90  -l, --unsignedlong       test unsigned long
91  -L, --unsignedlonglong   test unsigned long long
92  -d, --double             test double
93  -h, --help               print this help message
94Child status:
95    WIFEXITED   : 1    WEXITSTATUS : 1    WIFSIGNALED : 0    WTERMSIG    : 0    WCOREDUMP   : 0    WIFSTOPPED  : 0    WSTOPSIG    : 1    WIFCONTINUED: 0
96
97negative errors arg:
98Argument '-1' for option u could not be parsed
99
100Usage:
101  parsebools [OPTIONS]...
102testing bool parameters
103  -i, --int                test int
104  -u, --unsigned           test unsigned
105  -l, --unsignedlong       test unsigned long
106  -L, --unsignedlonglong   test unsigned long long
107  -d, --double             test double
108  -h, --help               print this help message
109Child status:
110    WIFEXITED   : 1    WEXITSTATUS : 1    WIFSIGNALED : 0    WTERMSIG    : 0    WCOREDUMP   : 0    WIFSTOPPED  : 0    WSTOPSIG    : 1    WIFCONTINUED: 0
111
112Argument '-1' for option l could not be parsed
113
114Usage:
115  parsebools [OPTIONS]...
116testing bool parameters
117  -i, --int                test int
118  -u, --unsigned           test unsigned
119  -l, --unsignedlong       test unsigned long
120  -L, --unsignedlonglong   test unsigned long long
121  -d, --double             test double
122  -h, --help               print this help message
123Child status:
124    WIFEXITED   : 1    WEXITSTATUS : 1    WIFSIGNALED : 0    WTERMSIG    : 0    WCOREDUMP   : 0    WIFSTOPPED  : 0    WSTOPSIG    : 1    WIFCONTINUED: 0
125
126Argument '-1' for option L could not be parsed
127
128Usage:
129  parsebools [OPTIONS]...
130testing bool parameters
131  -i, --int                test int
132  -u, --unsigned           test unsigned
133  -l, --unsignedlong       test unsigned long
134  -L, --unsignedlonglong   test unsigned long long
135  -d, --double             test double
136  -h, --help               print this help message
137Child status:
138    WIFEXITED   : 1    WEXITSTATUS : 1    WIFSIGNALED : 0    WTERMSIG    : 0    WCOREDUMP   : 0    WIFSTOPPED  : 0    WSTOPSIG    : 1    WIFCONTINUED: 0
139
140All Done!
Note: See TracBrowser for help on using the repository browser.