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
"111001010101", "#NUM!"
"101", 5
"10", 2
"0", 0
"21", "#NUM!"
TRUE, "#VALUE!"
"1110010101", -107
"10110010", "178"
"1100100", "100"
"111001010101", "#NUM!" // Too large
"101", "5"
"10", "2"
"0", "0"
"21", "#NUM!" // Invalid binary number
TRUE, "#VALUE!" // Non string
"1110010101", "-107" // 2's Complement
"1111111111", "-1" // 2's Complement

View File

@ -1,8 +1,14 @@
"10110010", "B2"
"111001010101", "#NUM!"
"101", "5"
"10", "2"
"0", "0"
"21", "#NUM!"
TRUE, "#VALUE!"
"1110010101", "FFFFFFFF95"
"10110010", "B2"
"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"
"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
"111001010101", "#NUM!"
"101", 5
"10", 2
"0", 0
"21", "#NUM!"
TRUE, "#VALUE!"
"1110010101", 7777777625
"1100100", "144"
"10110010", "262"
"111001010101", "#NUM!" // Too large
"1001", 3, "011" // Leading places
"1001", 4.75, "0011" // Leading places as a float
"1001", -1, "#NUM!" // Leading places negative
"1001", "ABC", "#VALUE!" // Leading places non-numeric
"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"
1357, "#NUM!"
246, "11110110"
12345, "#NUM!"
123456789, "#NUM!"
123.45, "1111011"
0, "0"
"3579A", "#VALUE!"
TRUE, "#VALUE!"
-107, "1110010101"
357, "101100101"
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"
12345, "#NUM!"
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"
"1357", "54D"
"246", "F6"
"12345", "3039"
"123456789", "75BCD15"
"123.45", "7B"
"0", "0"
"3579A", "#VALUE!"
TRUE, "#VALUE!"
"-107", "FFFFFFFF95"
"357", "165"
"1357", "54D"
"246", "F6"
"12345", "3039"
"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"
"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"
"1357", "2515"
"246", "366"
"12345", "30071"
"123456789", "726746425"
"123.45", "173"
"0", "0"
"3579A", "#VALUE!"
TRUE, "#VALUE!"
"-107", "7777777625"
"357", "545"
"1357", "2515"
"246", "366"
"12345", "30071"
"123456789", "726746425"
"123.45", "173"
"58, 3, "072"
"0", "0"
"3579A", "#VALUE!" // Invalid decimal
TRUE, "#VALUE!" // Non string
"-100", "7777777634" // 2's Complement
"-107", "7777777625" // 2's Complement

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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