Lines Matching refs:value
14 // int value(charT ch, int radix) const;
27 assert(t.value(c, 8) == -1);
28 assert(t.value(c, 10) == -1);
29 assert(t.value(c, 16) == -1);
33 assert(t.value(c, 8) == c - '0');
34 assert(t.value(c, 10) == c - '0');
35 assert(t.value(c, 16) == c - '0');
39 assert(t.value(c, 8) == -1);
40 assert(t.value(c, 10) == c - '0');
41 assert(t.value(c, 16) == c - '0');
45 assert(t.value(c, 8) == -1);
46 assert(t.value(c, 10) == -1);
47 assert(t.value(c, 16) == -1);
51 assert(t.value(c, 8) == -1);
52 assert(t.value(c, 10) == -1);
53 assert(t.value(c, 16) == c - 'A' +10);
57 assert(t.value(c, 8) == -1);
58 assert(t.value(c, 10) == -1);
59 assert(t.value(c, 16) == -1);
63 assert(t.value(c, 8) == -1);
64 assert(t.value(c, 10) == -1);
65 assert(t.value(c, 16) == c - 'a' +10);
69 assert(t.value(char(c), 8) == -1);
70 assert(t.value(char(c), 10) == -1);
71 assert(t.value(char(c), 16) == -1);
79 assert(t.value(c, 8) == -1);
80 assert(t.value(c, 10) == -1);
81 assert(t.value(c, 16) == -1);
85 assert(t.value(c, 8) == static_cast<int>(c - '0'));
86 assert(t.value(c, 10) == static_cast<int>(c - '0'));
87 assert(t.value(c, 16) == static_cast<int>(c - '0'));
91 assert(t.value(c, 8) == -1);
92 assert(t.value(c, 10) == static_cast<int>(c - '0'));
93 assert(t.value(c, 16) == static_cast<int>(c - '0'));
97 assert(t.value(c, 8) == -1);
98 assert(t.value(c, 10) == -1);
99 assert(t.value(c, 16) == -1);
103 assert(t.value(c, 8) == -1);
104 assert(t.value(c, 10) == -1);
105 assert(t.value(c, 16) == static_cast<int>(c - 'A' +10));
109 assert(t.value(c, 8) == -1);
110 assert(t.value(c, 10) == -1);
111 assert(t.value(c, 16) == -1);
115 assert(t.value(c, 8) == -1);
116 assert(t.value(c, 10) == -1);
117 assert(t.value(c, 16) == static_cast<int>(c - 'a' +10));
121 assert(t.value(c, 8) == -1);
122 assert(t.value(c, 10) == -1);
123 assert(t.value(c, 16) == -1);