// reading 0x80000000, i
signed int i = -1;
TESTSCAN( 1, 10, hexadecimal, 62, SCANPARMS( "%i", &i ) );
// reading 0x80000000, i
signed int i = -1;
TESTSCAN( 1, 10, hexadecimal, 62, SCANPARMS( "%i", &i ) );
CHECK_FEQUAL( i, -2147483648, signed int, "%d" ); /* FIXME */
}
{
CHECK_FEQUAL( i, -2147483648, signed int, "%d" ); /* FIXME */
}
{
TESTSCAN( 0, -1, special, 0, SCANPARMS( "%hhx", &i ) ); /* May fail on regtest */
CHECK_EQUAL( i, 1 ); /* FIXME */
}
{
// reading -0x, x
unsigned short i = 1;
TESTSCAN( 0, -1, special, 0, SCANPARMS( "%hhx", &i ) ); /* May fail on regtest */
CHECK_EQUAL( i, 1 ); /* FIXME */
}
{
// reading -0x, x
unsigned short i = 1;
TESTSCAN( 0, -1, special, 0, SCANPARMS( "%hx", &i ) ); /* May fail on regtest */
CHECK_EQUAL( i, 1 ); /* FIXME */
}
{
// reading -0x, x
unsigned int i = 1;
TESTSCAN( 0, -1, special, 0, SCANPARMS( "%hx", &i ) ); /* May fail on regtest */
CHECK_EQUAL( i, 1 ); /* FIXME */
}
{
// reading -0x, x
unsigned int i = 1;
TESTSCAN( 0, -1, special, 0, SCANPARMS( "%x", &i ) ); /* May fail on regtest */
CHECK_EQUAL( i, 1 ); /* FIXME */
}
TESTSCAN( 0, -1, special, 0, SCANPARMS( "%x", &i ) ); /* May fail on regtest */
CHECK_EQUAL( i, 1 ); /* FIXME */
}