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
"11111011", 4, "00FB" // Leading places
"11111011", 3.75, "0FB" // Leading places as a float
"11111011", -1, "#NUM!" // Leading places negative
"11111011", "ABC", "#VALUE!" // Leading places non-numeric
"1110", "E"
"101", "5" "101", "5"
"10", "2" "10", "2"
"0", "0" "0", "0"
"21", "#NUM!" "21", "#NUM!" // Invalid binary number
TRUE, "#VALUE!" TRUE, "#VALUE!" // Non string
"1110010101", "FFFFFFFF95" "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
9, 4, "1001"
9, 8, "00001001"
9, 6.75, "001001" // Leading places as a float
9, -1, "#NUM!" // Leading places negative
9, "ABC", "#VALUE!" // Leading places non-numeric
246, "11110110" 246, "11110110"
12345, "#NUM!" 12345, "#NUM!"
123456789, "#NUM!" 123456789, "#NUM!"
123.45, "1111011" 123.45, "1111011"
0, "0" 0, "0"
"3579A", "#VALUE!" "3579A", "#VALUE!" // Invalid decimal
TRUE, "#VALUE!" TRUE, "#VALUE!" // Non string
-107, "1110010101" -100, "1110011100" // 2's Complement
-107, "1110010101" // 2's Complement

View File

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

View File

@ -4,7 +4,9 @@
"12345", "30071" "12345", "30071"
"123456789", "726746425" "123456789", "726746425"
"123.45", "173" "123.45", "173"
"58, 3, "072"
"0", "0" "0", "0"
"3579A", "#VALUE!" "3579A", "#VALUE!" // Invalid decimal
TRUE, "#VALUE!" TRUE, "#VALUE!" // Non string
"-107", "7777777625" "-100", "7777777634" // 2's Complement
"-107", "7777777625" // 2's Complement

View File

@ -1,6 +1,8 @@
"01AB", "110101011" "01AB", "110101011"
"ABCD", "#NUM!" "ABCD", "#NUM!"
"F6", "11110110" "F6", "11110110"
"F", 8, "00001111"
"B7", "10110111"
"12345", "#NUM!" "12345", "#NUM!"
"123456789", "#NUM!" "123456789", "#NUM!"
"123.45", "#NUM!" "123.45", "#NUM!"
@ -8,3 +10,4 @@
"G3579A", "#NUM!" "G3579A", "#NUM!"
TRUE, "#VALUE!" TRUE, "#VALUE!"
"-107", "#NUM!" "-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,6 +1,8 @@
"01AB", "653" "01AB", "653"
"ABCD", "125715" "ABCD", "125715"
"F6", "366" "F6", "366"
"3B4E", "35516"
"F", 3", "017"
"12345", "221505" "12345", "221505"
"123456789", "#NUM!" "123456789", "#NUM!"
"123.45", "#NUM!" "123.45", "#NUM!"
@ -8,3 +10,4 @@
"G3579A", "#NUM!" "G3579A", "#NUM!"
TRUE, "#VALUE!" TRUE, "#VALUE!"
"-107", "#NUM!" "-107", "#NUM!"
"FFFFFFFF00", "7777777400" // 2's Complement

View File

@ -1,7 +1,10 @@
"1357", "#NUM!" "1357", "#NUM!"
"246", "10100110" "246", "10100110"
"3", 3, "011"
"12345", "#NUM!" "12345", "#NUM!"
"123.45", "#NUM!" "123.45", "#NUM!"
"0", "0" "0", "0"
TRUE, "#VALUE!" TRUE, "#VALUE!"
"3579", "#NUM!" "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"
"100", 4, "0040"
"123.45", "#NUM!" "123.45", "#NUM!"
"0", "0" "0", "0"
TRUE, "#VALUE!" TRUE, "#VALUE!"
"3579", "#NUM!" "3579", "#NUM!"
"7777777533", "FFFFFFFF5B" // 2's Complement