2012-03-23 18:04:58 +00:00
|
|
|
"1357", "#NUM!"
|
|
|
|
"246", "10100110"
|
|
|
|
"3", 3, "011"
|
|
|
|
"12345", "#NUM!"
|
|
|
|
"123.45", "#NUM!"
|
|
|
|
"0", "0"
|
|
|
|
TRUE, "#VALUE!"
|
|
|
|
"3579", "#NUM!"
|
|
|
|
"7777777000", "1000000000" // 2's Complement
|
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
|
|
|
"7777777777", "1111111111" // 2's Complement
|
|
|
|
"17777777777", "#NUM!" // Too small
|
|
|
|
"777", "111111111"
|
|
|
|
"1777", "#NUM!" // Too large
|