Unit test data

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@88244 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
Mark Baker 2012-03-23 18:04:58 +00:00
parent 699467cd0f
commit cbad0cbb14
12 changed files with 132 additions and 88 deletions

View File

@ -1,8 +1,10 @@
"10110010", 178 "10110010", "178"
"111001010101", "#NUM!" "1100100", "100"
"101", 5 "111001010101", "#NUM!" // Too large
"10", 2 "101", "5"
"0", 0 "10", "2"
"21", "#NUM!" "0", "0"
TRUE, "#VALUE!" "21", "#NUM!" // Invalid binary number
"1110010101", -107 TRUE, "#VALUE!" // Non string
"1110010101", "-107" // 2's Complement
"1111111111", "-1" // 2's Complement

View File

@ -1,8 +1,14 @@
"10110010", "B2" "10110010", "B2"
"111001010101", "#NUM!" "111001010101", "#NUM!" // Too large
"101", "5" "11111011", 4, "00FB" // Leading places
"10", "2" "11111011", 3.75, "0FB" // Leading places as a float
"0", "0" "11111011", -1, "#NUM!" // Leading places negative
"21", "#NUM!" "11111011", "ABC", "#VALUE!" // Leading places non-numeric
TRUE, "#VALUE!" "1110", "E"
"1110010101", "FFFFFFFF95" "101", "5"
"10", "2"
"0", "0"
"21", "#NUM!" // Invalid binary number
TRUE, "#VALUE!" // Non string
"1110010101", "FFFFFFFF95" // 2's Complement
"1111111111", "FFFFFFFFFF" // 2's Complement

View File

@ -1,8 +1,15 @@
"10110010", 262 "1100100", "144"
"111001010101", "#NUM!" "10110010", "262"
"101", 5 "111001010101", "#NUM!" // Too large
"10", 2 "1001", 3, "011" // Leading places
"0", 0 "1001", 4.75, "0011" // Leading places as a float
"21", "#NUM!" "1001", -1, "#NUM!" // Leading places negative
TRUE, "#VALUE!" "1001", "ABC", "#VALUE!" // Leading places non-numeric
"1110010101", 7777777625 "00000010", "2"
"00000101", "5"
"00001101", "15"
"0", "0"
"21", "#NUM!" // Invalid binary number
TRUE, "#VALUE!" // Non string
"1110010101", "7777777625" // 2's Complement
"1111111111", "7777777777" // 2's Complement

View File

@ -1,10 +1,16 @@
357, "101100101" 357, "101100101"
1357, "#NUM!" 1357, "#NUM!" // Too large
246, "11110110" 9, 4, "1001"
12345, "#NUM!" 9, 8, "00001001"
123456789, "#NUM!" 9, 6.75, "001001" // Leading places as a float
123.45, "1111011" 9, -1, "#NUM!" // Leading places negative
0, "0" 9, "ABC", "#VALUE!" // Leading places non-numeric
"3579A", "#VALUE!" 246, "11110110"
TRUE, "#VALUE!" 12345, "#NUM!"
-107, "1110010101" 123456789, "#NUM!"
123.45, "1111011"
0, "0"
"3579A", "#VALUE!" // Invalid decimal
TRUE, "#VALUE!" // Non string
-100, "1110011100" // 2's Complement
-107, "1110010101" // 2's Complement

View File

@ -1,10 +1,15 @@
"357", "165" "357", "165"
"1357", "54D" "1357", "54D"
"246", "F6" "246", "F6"
"12345", "3039" "12345", "3039"
"123456789", "75BCD15" "123456789", "75BCD15"
"123.45", "7B" "100", 4, "0064"
"0", "0" "100", 5.75, "00064" // Leading places as a float
"3579A", "#VALUE!" "100", -1, "#NUM!" // Leading places negative
TRUE, "#VALUE!" "100", "ABC", "#VALUE!" // Leading places non-numeric
"-107", "FFFFFFFF95" "123.45", "7B"
"0", "0"
"3579A", "#VALUE!" // Invalid decimal
TRUE, "#VALUE!" // Non string
"-54" "FFFFFFFFCA" // 2's Complement
"-107", "FFFFFFFF95" // 2's Complement

View File

@ -1,10 +1,12 @@
"357", "545" "357", "545"
"1357", "2515" "1357", "2515"
"246", "366" "246", "366"
"12345", "30071" "12345", "30071"
"123456789", "726746425" "123456789", "726746425"
"123.45", "173" "123.45", "173"
"0", "0" "58, 3, "072"
"3579A", "#VALUE!" "0", "0"
TRUE, "#VALUE!" "3579A", "#VALUE!" // Invalid decimal
"-107", "7777777625" TRUE, "#VALUE!" // Non string
"-100", "7777777634" // 2's Complement
"-107", "7777777625" // 2's Complement

View File

@ -1,10 +1,13 @@
"01AB", "110101011" "01AB", "110101011"
"ABCD", "#NUM!" "ABCD", "#NUM!"
"F6", "11110110" "F6", "11110110"
"12345", "#NUM!" "F", 8, "00001111"
"123456789", "#NUM!" "B7", "10110111"
"123.45", "#NUM!" "12345", "#NUM!"
"0", "0" "123456789", "#NUM!"
"G3579A", "#NUM!" "123.45", "#NUM!"
TRUE, "#VALUE!" "0", "0"
"-107", "#NUM!" "G3579A", "#NUM!"
TRUE, "#VALUE!"
"-107", "#NUM!"
"FFFFFFFFFF", "1111111111" // 2's Complement

View File

@ -8,3 +8,6 @@
"G3579A", "#NUM!" "G3579A", "#NUM!"
TRUE, "#VALUE!" TRUE, "#VALUE!"
"-107", "#NUM!" "-107", "#NUM!"
"A5", "165"
"FFFFFFFF5B", "-165"
"3DA408B9", "1034160313" // 2's Complement

View File

@ -1,10 +1,13 @@
"01AB", "653" "01AB", "653"
"ABCD", "125715" "ABCD", "125715"
"F6", "366" "F6", "366"
"12345", "221505" "3B4E", "35516"
"123456789", "#NUM!" "F", 3", "017"
"123.45", "#NUM!" "12345", "221505"
"0", "0" "123456789", "#NUM!"
"G3579A", "#NUM!" "123.45", "#NUM!"
TRUE, "#VALUE!" "0", "0"
"-107", "#NUM!" "G3579A", "#NUM!"
TRUE, "#VALUE!"
"-107", "#NUM!"
"FFFFFFFF00", "7777777400" // 2's Complement

View File

@ -1,7 +1,10 @@
"1357", "#NUM!" "1357", "#NUM!"
"246", "10100110" "246", "10100110"
"12345", "#NUM!" "3", 3, "011"
"123.45", "#NUM!" "12345", "#NUM!"
"0", "0" "123.45", "#NUM!"
TRUE, "#VALUE!" "0", "0"
"3579", "#NUM!" TRUE, "#VALUE!"
"3579", "#NUM!"
"7777777000", "1000000000" // 2's Complement

View File

@ -5,3 +5,5 @@
"0", "0" "0", "0"
TRUE, "#VALUE!" TRUE, "#VALUE!"
"3579", "#NUM!" "3579", "#NUM!"
"54", "44"
"7777777533", "-165" // 2's Complement

View File

@ -1,7 +1,9 @@
"1357", "2EF" "1357", "2EF"
"246", "A6" "246", "A6"
"12345", "14E5" "12345", "14E5"
"123.45", "#NUM!" "100", 4, "0040"
"0", "0" "123.45", "#NUM!"
TRUE, "#VALUE!" "0", "0"
"3579", "#NUM!" TRUE, "#VALUE!"
"3579", "#NUM!"
"7777777533", "FFFFFFFF5B" // 2's Complement