2012-01-23 23:40:50 +00:00
|
|
|
"01AB", "427"
|
|
|
|
"ABCD", "43981"
|
|
|
|
"F6", "246"
|
|
|
|
"12345", "74565"
|
|
|
|
"123456789", "4886718345"
|
|
|
|
"123.45", "#NUM!"
|
|
|
|
"0", "0"
|
|
|
|
"G3579A", "#NUM!"
|
|
|
|
TRUE, "#VALUE!"
|
|
|
|
"-107", "#NUM!"
|
2012-03-23 18:04:58 +00:00
|
|
|
"A5", "165"
|
Fix unit tests for all base conversion functions
This include cases were artificial constraints were not checked
(eg: between -512 and 511 for `DECBIN`) and some bugs were 32
bits platform were assumed.
The following are covered:
`BIN2DEC`, `BIN2HEX`, `BIN2OCT`,
`DEC2BIN`, `DEC2HEX`, `DEC2OCT`,
`HEX2BIN`, `HEX2DEC`, `HEX2OCT`,
`OCT2BIN`, `OCT2DEC`, `OCT2HEX`
2016-07-31 17:42:58 +00:00
|
|
|
"3DA408B9", "1034160313"
|
|
|
|
"FFFFFFFF5B", "-165" // 2's Complement
|
|
|
|
"FFFFFFFFFF", "-1" // 2's Complement
|
|
|
|
"1FFFFFFFFFF", "#NUM!" // Too large
|