- Timestamp:
- Mar 26, 2012 9:02:42 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstStrToNum.cpp
r38636 r40627 152 152 { "0x07777777777777777777777",0, VWRN_NUMBER_TOO_BIG, 0x7777777777777777ULL }, 153 153 { "0x07f7f7f7f7f7f7f7f7f7f7f",0, VWRN_NUMBER_TOO_BIG, 0x7f7f7f7f7f7f7f7fULL }, 154 { "0x0ffffffffffffffffffffff",0, VWRN_NUMBER_TOO_BIG, 0xffffffffffffffffULL },154 { "0x0ffffffffffffffffffffff",0, VWRN_NUMBER_TOO_BIG, (int64_t)0xffffffffffffffffULL }, 155 155 { "asdfasdfasdf", 0, VERR_NO_DIGITS, 0 }, 156 156 { "0x111111111", 0, VINF_SUCCESS, 0x111111111ULL }, … … 200 200 { "0x80000000", 0, VWRN_NUMBER_TOO_BIG, INT32_MIN }, 201 201 { "0xffffffff", 0, VWRN_NUMBER_TOO_BIG, -1 }, 202 { "0x0fffffffffffffff", 0, VWRN_NUMBER_TOO_BIG, 0xffffffff },202 { "0x0fffffffffffffff", 0, VWRN_NUMBER_TOO_BIG, (int32_t)0xffffffff }, 203 203 { "0x01111111111111111111111",0, VWRN_NUMBER_TOO_BIG, 0x11111111 }, 204 { "0x0ffffffffffffffffffffff",0, VWRN_NUMBER_TOO_BIG, 0xffffffff },204 { "0x0ffffffffffffffffffffff",0, VWRN_NUMBER_TOO_BIG, (int32_t)0xffffffff }, 205 205 { "asdfasdfasdf", 0, VERR_NO_DIGITS, 0 }, 206 206 { "0x1111111", 0, VINF_SUCCESS, 0x01111111 }, … … 213 213 { "1", 0, VINF_SUCCESS, 1 }, 214 214 /// @todo { "-1", 0, VWRN_NEGATIVE_UNSIGNED, ~0 }, - no longer true. bad idea? 215 { "-1", 0, VWRN_NUMBER_TOO_BIG, ~0 },215 { "-1", 0, VWRN_NUMBER_TOO_BIG, ~0U }, 216 216 { "0x", 0, VWRN_TRAILING_CHARS, 0 }, 217 217 { "0x1", 0, VINF_SUCCESS, 1 },
Note:
See TracChangeset
for help on using the changeset viewer.