| 177 | } |
| 178 | |
| 179 | Y_UNIT_TEST(TestToFrom) { |
| 180 | test1(bool, true); |
| 181 | test1(bool, false); |
| 182 | test2(bool, ""); |
| 183 | test2(bool, "a"); |
| 184 | |
| 185 | test2(ui8, -1); |
| 186 | test1(i8, -1); |
| 187 | test1(i8, SCHAR_MAX); |
| 188 | test1(i8, SCHAR_MIN); |
| 189 | test1(i8, SCHAR_MAX - 1); |
| 190 | test1(i8, SCHAR_MIN + 1); |
| 191 | test2(i8, (int)SCHAR_MAX + 1); |
| 192 | test2(i8, (int)SCHAR_MIN - 1); |
| 193 | test1(ui8, UCHAR_MAX); |
| 194 | test1(ui8, UCHAR_MAX - 1); |
| 195 | test2(ui8, (int)UCHAR_MAX + 1); |
| 196 | test2(ui8, -1); |
| 197 | test1(int, -1); |
| 198 | test2(unsigned int, -1); |
| 199 | test1(short int, -1); |
| 200 | test2(unsigned short int, -1); |
| 201 | test1(long int, -1); |
| 202 | test2(unsigned long int, -1); |
| 203 | test1(int, INT_MAX); |
| 204 | test1(int, INT_MIN); |
| 205 | test1(int, INT_MAX - 1); |
| 206 | test1(int, INT_MIN + 1); |
| 207 | test2(int, (long long int)INT_MAX + 1); |
| 208 | test2(int, (long long int)INT_MIN - 1); |
| 209 | test1(unsigned int, UINT_MAX); |
| 210 | test1(unsigned int, UINT_MAX - 1); |
| 211 | test2(unsigned int, (long long int)UINT_MAX + 1); |
| 212 | test1(short int, SHRT_MAX); |
| 213 | test1(short int, SHRT_MIN); |
| 214 | test1(short int, SHRT_MAX - 1); |
| 215 | test1(short int, SHRT_MIN + 1); |
| 216 | test2(short int, (long long int)SHRT_MAX + 1); |
| 217 | test2(short int, (long long int)SHRT_MIN - 1); |
| 218 | test1(unsigned short int, USHRT_MAX); |
| 219 | test1(unsigned short int, USHRT_MAX - 1); |
| 220 | test2(unsigned short int, (long long int)USHRT_MAX + 1); |
| 221 | test1(long int, LONG_MAX); |
| 222 | test1(long int, LONG_MIN); |
| 223 | test1(long int, LONG_MAX - 1); |
| 224 | test1(long int, LONG_MIN + 1); |
| 225 | |
| 226 | test1(long long int, LLONG_MAX); |
| 227 | test1(long long int, LLONG_MIN); |
| 228 | test1(long long int, LLONG_MAX - 1); |
| 229 | test1(long long int, LLONG_MIN + 1); |
| 230 | } |
| 231 | |
| 232 | Y_UNIT_TEST(TestVolatile) { |
| 233 | volatile int x = 1; |
nothing calls this directly
no test coverage detected