Data files for Unit Tests
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85740 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
7429a98174
commit
f3ceef434c
|
@ -0,0 +1,78 @@
|
|||
# Year Month Day Result Comments
|
||||
18, 11, 11, 6890
|
||||
1900, 1, 1, 1 // Excel 1900 Calendar Base Date
|
||||
1900, 2, 28, 59 // Day before Excel mythical 1900 leap day
|
||||
1900, 2, 29, 60 // Excel mythical 1900 leap day
|
||||
1900, 3, 1, 61 // Day after Excel mythical 1900 leap day
|
||||
1901, 12, 13, 713 // Day after Excel mythical 1900 leap day
|
||||
1901, 12, 14, 714 // PHP 32-bit Earliest Date
|
||||
1903, 12, 31, 1461
|
||||
1904, 1, 1, 1462 // Excel 1904 Calendar Base Date
|
||||
1904, 1, 2, 1463
|
||||
1960, 12, 19, 22269
|
||||
1970, 1, 1, 25569 // PHP Base Date
|
||||
1982, 12, 7, 30292
|
||||
2008, 6, 12, 39611
|
||||
2038, 1, 19, 50424 // PHP 32-bit Latest Date
|
||||
2038, 1, 20, 50425 // Day after PHP 32-bit Latest Date
|
||||
2008, 1, 1, 39448
|
||||
2008, 1, , 39447
|
||||
2008, 1, -1, 39446
|
||||
2008, 1, -30, 39417
|
||||
2008, 1, -31, 39416
|
||||
2008, 1, -365, 39082
|
||||
2008, 3, 1, 39508
|
||||
2008, 3, , 39507
|
||||
2008, 3, -1, 39506
|
||||
2008, 3, -365, 39142
|
||||
2008, , 1, 39417
|
||||
2008, -1, 1, 39387
|
||||
2008, -11, 1, 39083
|
||||
2008, -12, 1, 39052
|
||||
2008, -13, 1, 39022
|
||||
2008, -13, 30, 39051
|
||||
2008, -13, , 39021
|
||||
2008, -13, -30, 38991
|
||||
2008, -13, -31, 38990
|
||||
2008, 13, 1, 39814
|
||||
2007, 15, , 39507
|
||||
2008, 26, 1, 40210
|
||||
2008, 26, -10, 40199
|
||||
2008, -26, 61, 38686
|
||||
2010, -15, -50, 39641
|
||||
2010, -15, 50, 39741
|
||||
2010, 15, -50, 40552
|
||||
2010, 15, 50, 40652
|
||||
2010, 1.5, 1, 40179
|
||||
2010, 1.5, 0, 40178
|
||||
2010, 0, 1.5, 40148
|
||||
2010, 1, 1.5, 40179
|
||||
2012, 6, 15, 41075
|
||||
2012, 6, , 41060
|
||||
2012, , 15, 40892
|
||||
, 6, 15, 167
|
||||
10, 6, 15, 3819
|
||||
10, , , 3622
|
||||
, 10, , 274
|
||||
, , 10, "#NUM!"
|
||||
-20, , , "#NUM!"
|
||||
-20, 6, 15, "#NUM!"
|
||||
9999, 12, 31, 2958465 // Excel Maximum Date
|
||||
10000, 1, 1, "#NUM!" // Exceeded Excel Maximum Date
|
||||
2008, 8, 10, 39670
|
||||
2008, 12, 31, 39813
|
||||
2008, 8, 32, 39692
|
||||
2008, 13, 31, 39844
|
||||
2009, 1, 0, 39813
|
||||
2009, 1, -1, 39812
|
||||
2009, 0, 0, 39782
|
||||
2009, 0, -1, 39781
|
||||
2009, -1, 0, 39752
|
||||
2009, -1, -1, 39751
|
||||
2010, 0, -1, 40146
|
||||
2010, 5, 31, 40329
|
||||
2010, 1, 21st, 40199 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
2010, "March",21st, 40168 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"ABC", 1, 21, "#VALUE!"
|
||||
2010, "DEF", 21, "#VALUE!"
|
||||
2010, 3, "GHI", "#VALUE!"
|
|
@ -0,0 +1,66 @@
|
|||
# Date String Result
|
||||
"25-Dec-1899", "#VALUE!"
|
||||
"31-Dec-1899", "#VALUE!"
|
||||
"1-Jan-1900", 1
|
||||
"1900/2/28", 59
|
||||
"29-02-1900", 60
|
||||
"29th February 1900", 60 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"1900/3/1", 61
|
||||
"13-12-1901", 713
|
||||
"14-12-1901", 714
|
||||
"1903/12/31", 1461
|
||||
"1-Jan-1904", 1462
|
||||
"2nd-Jan-1904", 1463 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"19-12-1960", 22269
|
||||
"1st January 1970", 25569 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"7-Dec-1982", 30292
|
||||
"1-1-2008", 39448
|
||||
"2038-01-19", 50424
|
||||
"2-6-2008", 39601
|
||||
"December 25th 2008", 39807 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"1 Jan-2008", 39448
|
||||
"12-31-2008", 39813 // MS Excel success or failure dependent on country settings
|
||||
"31-12-2008", 39813 // PHPExcel tries to handle both US and UK formats, irrespective of country settings
|
||||
"8/22/2008", 39682 // MS Excel success or failure dependent on country settings
|
||||
"22/8/2008", 39682 // PHPExcel tries to handle both US and UK formats, irrespective of country settings
|
||||
"22/8/08", 39682
|
||||
"22-AUG-2008", 39682
|
||||
"2008/02/23", 39501
|
||||
"6-7-2008", 39635
|
||||
"28-2-2007", 39141 // MS Excel success or failure dependent on country settings
|
||||
"2-28-2007", 39141 // PHPExcel tries to handle both US and UK formats, irrespective of country settings
|
||||
"29-2-2007", "#VALUE!" // Should fail because it's an invalid date, but PHPExcel currently adjusts to 1-3-2007 - FIX NEEDED
|
||||
"1/1/1999", 36161
|
||||
"1954-07-20", 19925
|
||||
"22 August 98", 36029
|
||||
"1st March 2007", 39142 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"The 1st day of March 2007", "#VALUE!"
|
||||
"1 Jan", 40909
|
||||
"31/12", 41274
|
||||
"12/31", 11658 // ???
|
||||
"5-JUL", 41095
|
||||
"5 Jul", 41095
|
||||
"12/2008", 39783
|
||||
"10/32", 11963
|
||||
11, "#VALUE!"
|
||||
TRUE, "#VALUE!"
|
||||
FALSE, "#VALUE!"
|
||||
1, "#VALUE!"
|
||||
12345, "#VALUE!"
|
||||
12, "#VALUE!"
|
||||
"12-Feb-2010", 40221
|
||||
"Feb-12-2010", 40221 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"February-12-2010", 40221 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"February 12 2010", 40221 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"18 Feb 2010", 40227
|
||||
"17th 3rd 2010", 40254 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"Feb 18th 2010", 40227 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"1st Feb 2010", 40210 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"1st-Feb-2010", 40210 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"1me Fev 2010", "#VALUE!"
|
||||
"February 1st 2010", 40210 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"2nd Feb 2010", 40211 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"Second Feb 2010", "#VALUE!"
|
||||
"First August 2010", "#VALUE!"
|
||||
"1st August 2010", 40391 // MS Excel will fail with a #VALUE return, but PHPExcel can parse this date
|
||||
"15:30:25", 0
|
|
@ -0,0 +1,8 @@
|
|||
# Date Value Result
|
||||
22269, 19
|
||||
30348, 1
|
||||
30843, 10
|
||||
"11-Nov-1918", 11
|
||||
"28-Feb-1904", 28
|
||||
"Invalid", "#VALUE!"
|
||||
-1, "#NUM!"
|
|
@ -0,0 +1,15 @@
|
|||
"15-Jan-2008", 1, 39493
|
||||
"15-Jan-2008", -1, 39431
|
||||
"15-Jan-2008", 2, 39522
|
||||
"31-Mar-2007", 1, 39202
|
||||
"31-Mar-2007", -1, 39141
|
||||
"31-Mar-2008", -1, 39507
|
||||
"31-Mar-2008", -4, 39416
|
||||
"29-Feb-2008", -12, 39141
|
||||
"15-Mar-2007", 3, 39248
|
||||
22269.0, 0, 22269
|
||||
22269.0, 2, 22331
|
||||
22269.0, 110, 25618
|
||||
22269.0, -110, 18920
|
||||
"15-Mar-2007", "ABC", "#VALUE!"
|
||||
"Invalid", 12, "#VALUE!"
|
|
@ -0,0 +1,17 @@
|
|||
"15-Jan-2008", 1, 39507
|
||||
"15-Jan-2008", -1, 39447
|
||||
"15-Jan-2008", 2, 39538
|
||||
"31-Mar-2007", 1, 39202
|
||||
"31-Mar-2007", -1, 39141
|
||||
"31-Mar-2008", -1, 39507
|
||||
"31-Mar-2008", -4, 39416
|
||||
"29-Feb-2008", -12, 39141
|
||||
"15-Mar-2007", 3, 39263
|
||||
22269.0, 0, 22281
|
||||
22269.0, 2, 22340
|
||||
22269.0, 110, 25627
|
||||
22269.0, -110, 25627
|
||||
22269.0, 3, 22371
|
||||
22269.0, 3.75, 22371
|
||||
"15-Mar-2007", "ABC", "#VALUE!"
|
||||
"Invalid", 12, "#VALUE!"
|
|
@ -0,0 +1,11 @@
|
|||
0.25, 6
|
||||
0.75, 18
|
||||
0.5, 12
|
||||
0.6, 14
|
||||
"11-Nov-1918 11:11", 11
|
||||
"11:59 PM", 23
|
||||
"23:59:59", 23
|
||||
3600, 2
|
||||
-3600, 0
|
||||
7200, 3
|
||||
65535, 19
|
|
@ -0,0 +1,11 @@
|
|||
0.2, 48
|
||||
0.4, 36
|
||||
0.6, 24
|
||||
0.8, 12
|
||||
"11-Nov-1918 11:15", 15
|
||||
"11:59 PM", 59
|
||||
"23:59:59", 59
|
||||
3600, 0
|
||||
-3600, 0
|
||||
12500, 28
|
||||
65535, 12
|
|
@ -0,0 +1,12 @@
|
|||
, 1
|
||||
0, 1
|
||||
22269.0, 12
|
||||
30348.0, 2
|
||||
30843.0, 6
|
||||
"11-Nov-1918", 11
|
||||
"28-Feb-1904", 2
|
||||
"01 Jul 2003", 7
|
||||
38094, 4
|
||||
"Dec 2003", 12
|
||||
-10, "#NUM!"
|
||||
"ABCD", "#VALUE!"
|
|
@ -0,0 +1,18 @@
|
|||
"1-Jan-2007", "10-Jan-2007", 8
|
||||
"18-Jun-2008", "20-Jun-2008", 3
|
||||
"16-Jun-2008", "20-Jun-2008", 5
|
||||
"14-Jun-2008", "20-Jun-2008", 5
|
||||
"20-Jun-2008", "20-Jun-2008", 1
|
||||
"21-Jun-2008", "21-Jun-2008", 0
|
||||
"20-Jun-2008", "20-Jun-2008", "20-Jun-2008", 0
|
||||
"20-Jun-2008", "20-Jun-2008", "20-Jun-2008", "20-Jun-2008", 0
|
||||
"14-Jun-2008", "25-Jun-2008", 8
|
||||
"19-Dec-1960", "10-Jan-1961", 17
|
||||
"10-Jan-1961", "19-Dec-1960", -17
|
||||
"19-Dec-1960", "10-Jan-1961", "25-Dec-1960", "26-Dec-1960", "01-Jan-1961", 16
|
||||
"10-Jan-1961", "19-Dec-1960", "25-Dec-1960", "26-Dec-1960", "01-Jan-1961", -16
|
||||
"1-Jan-2007", "31-Mar-2007", 65
|
||||
"1-Jan-2007", "31-Jan-2007", 23
|
||||
"1-Jan-2007", "1-Feb-2007", 24
|
||||
"1-Jan-2007", "28-Feb-2007", 43
|
||||
"31-Jan-2007", "1-Feb-2007", 2
|
|
@ -0,0 +1,11 @@
|
|||
0.2339930556, 57
|
||||
0.4202893519, 13
|
||||
0.6078935185, 22
|
||||
0.8022106481, 11
|
||||
"11-Nov-1918 11:15:35", 35
|
||||
"11:59 PM", 0
|
||||
"23:59:59", 59
|
||||
3600, 0
|
||||
-3601, 59
|
||||
12500, 20
|
||||
65535, 15
|
|
@ -0,0 +1,23 @@
|
|||
18, 11, 11, 0.757766203704
|
||||
6, 15, 5, 0.260474537037
|
||||
12, 30, 10, 0.520949074074
|
||||
18, 45, 25, 0.781539351852
|
||||
15, 32, 50, 0.647800925926
|
||||
12, , 61, 0.500706018519
|
||||
11, , -1, 0.458321759259
|
||||
10, , -67, 0.415891203704
|
||||
13, 62, 5, 0.584780092593
|
||||
9, -80, 17, 0.319641203704
|
||||
8, -162, , 0.220833333333
|
||||
2, -120, -1, "#NUM!"
|
||||
2, -120, , 0.000000000000
|
||||
2, -120, 1, 0.000011574074
|
||||
36, 1, 2, 0.500717592593
|
||||
-1, 2, 3, "#NUM!"
|
||||
-1, 61, 29, 0.001030092593
|
||||
-1, 61, -60, 0.000000000000
|
||||
"A", , , "#VALUE!"
|
||||
11, 59, 0, 0.499305555556
|
||||
12, 0, 0, 0.500000000000
|
||||
16, 48, 10, 0.700115740741
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
"12:00:00 am", 0
|
||||
"12:01:02 am", 0.000717593
|
||||
"12:03 pm", 0.502083333
|
||||
"12:7:11 pm", 0.504988426
|
||||
"4:13:39", 0.176145833
|
||||
"6:20:17 pm", 0.764085648
|
||||
"18:33:27", 0.773229167
|
||||
"31/12/2007 03:27:15", 0.143923611
|
||||
"9:44:55 pm", 0.90619213
|
||||
12, "#VALUE!"
|
||||
"13:01", 0.542361111
|
||||
"33:45", 0.40625
|
||||
"13:01PM", "#VALUE!"
|
|
@ -0,0 +1,27 @@
|
|||
"24-Oct-1968", 5
|
||||
"24-Oct-1968", 2, 4
|
||||
"24-Oct-1968", 3, 3
|
||||
"2000-06-14", 4
|
||||
"2000-06-14", 2, 3
|
||||
"2000-06-14", 3, 2
|
||||
"1996-07-24", 4
|
||||
"1996-07-24", 2, 3
|
||||
"1996-07-24", 3, 2
|
||||
"1996-07-27", 7
|
||||
"1996-07-27", 2, 6
|
||||
"1996-07-27", 3, 5
|
||||
"1977-7-31", 1
|
||||
"1977-7-31", 2, 7
|
||||
"1977-7-31", 3, 6
|
||||
"1977-8-1", 2
|
||||
"1977-8-1", 2, 1
|
||||
"1977-8-1", 3, 0
|
||||
"1900-2-5", 2, 7
|
||||
"1900-2-1", 1
|
||||
38093, 6
|
||||
38093, 2, 5
|
||||
38093, 3, 4
|
||||
"3/7/1977", "A", "#VALUE!"
|
||||
"3/7/1977", 0, "#NUM!"
|
||||
"Invalid", 1, "#VALUE!"
|
||||
-1, "#NUM!"
|
|
@ -0,0 +1,7 @@
|
|||
"21-Dec-2000", 1, 52
|
||||
"1995-01-01", 1, 1
|
||||
"3/7/1977", 27
|
||||
"3/7/1977", "A", "#VALUE!"
|
||||
"3/7/1977", 0, "#NUM!"
|
||||
"Invalid", 1, "#VALUE!"
|
||||
-1, "#NUM!"
|
|
@ -0,0 +1,11 @@
|
|||
, 1900
|
||||
1, 1900
|
||||
33333.33, 1991
|
||||
22269.0, 1960
|
||||
30348.0, 1983
|
||||
30843.0, 1984
|
||||
"01 Jan 2525", 2525
|
||||
"11-Nov-1918", 1918
|
||||
"28-Feb-1904", 1904
|
||||
-10, "#NUM!"
|
||||
"ABCD", "#VALUE!"
|
|
@ -1,4 +1,5 @@
|
|||
1.0, "lbm", "kg", 0.453592
|
||||
1.0, "lbm", "kg", 0.45359230974881
|
||||
123.45, "kg", "kg", 123.45
|
||||
68, "F", "C", 20
|
||||
20, "C", "F", 68
|
||||
68, "F", "K", 293.15
|
||||
|
@ -10,3 +11,14 @@
|
|||
12.345, "km", "m", 12345
|
||||
1, "km", "mi", 0.62137119223733
|
||||
"three","ft", "yds", "#VALUE!"
|
||||
123.45, "K", "kel", 123.45
|
||||
123.45, "C", "cel", 123.45
|
||||
123.45, "F", "fah", 123.45
|
||||
1, "ft", "day", "#N/A"
|
||||
123.45, "m", "m", 123.45
|
||||
234.56, "km", "km", 234.56
|
||||
234.56, "kpt", "lt", "#N/A"
|
||||
234.56, "sm", "m", "#N/A"
|
||||
234.56, "lt", "kpt", "#N/A"
|
||||
234.56, "m", "sm", "#N/A"
|
||||
12.345, "km", "mm", 12345000
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
-1.5 ,-1.5, 0
|
||||
-2.5, 5, 0
|
||||
-1.5, -1.5, 0
|
||||
-0.75, -1.5, 0
|
||||
0, -1.5, 0
|
||||
0.75, -1.5, 0.288844366
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
, 0
|
||||
5.4, 5
|
||||
-5.4, -6
|
||||
-3.2, -4
|
||||
1.5, 1
|
||||
0.1, 0
|
||||
-0.1, -1
|
||||
3, 3
|
||||
2, 2
|
||||
-2.01, -3
|
||||
-2, -2
|
||||
-1, -1
|
||||
"ABC", "#VALUE!"
|
||||
TRUE, 1
|
||||
FALSE, 0
|
||||
0, 0
|
||||
"-3.5", -4
|
|
@ -0,0 +1,81 @@
|
|||
-1.5, -1.5, "#NUM!"
|
||||
-0.75, -1.5, "#NUM!"
|
||||
0, -1.5, "#DIV/0!"
|
||||
0.75, -1.5, 1.539600717839
|
||||
1.5, -1.5, 0.54433105395182
|
||||
2.25, -1.5, 0.2962962962963
|
||||
3, -1.5, 0.19245008972988
|
||||
3.75, -1.5, 0.13770607453182
|
||||
4.5, -1.5, 0.10475656017579
|
||||
-1.5, -0.75, "#NUM!"
|
||||
-0.75, -0.75, "#NUM!"
|
||||
0, -0.75, "#DIV/0!"
|
||||
0.75, -0.75, 1.2408064788028
|
||||
1.5, -0.75, 0.73778794646688
|
||||
2.25, -0.75, 0.54433105395182
|
||||
3, -0.75, 0.43869133765083
|
||||
3.75, -0.75, 0.37108769116183
|
||||
4.5, -0.75, 0.32366118113822
|
||||
-1.5, 0, 1
|
||||
-0.75, 0, 1
|
||||
0, 0, "#NUM!"
|
||||
0.75, 0, 1
|
||||
1.5, 0, 1
|
||||
2.25, 0, 1
|
||||
3, 0, 1
|
||||
3.75, 0, 1
|
||||
4.5, 0, 1
|
||||
-1.5, 0.75, "#NUM!"
|
||||
-0.75, 0.75, "#NUM!"
|
||||
0, 0.75, 0
|
||||
0.75, 0.75, 0.80592744886766
|
||||
1.5, 0.75, 1.35540300541477
|
||||
2.25, 0.75, 1.83711730708738
|
||||
3, 0.75, 2.27950705695478
|
||||
3.75, 0.75, 2.69478083972313
|
||||
4.5, 0.75, 3.08965071586068
|
||||
-1.5, 1.5, "#NUM!"
|
||||
-0.75, 1.5, "#NUM!"
|
||||
0, 1.5, 0
|
||||
0.75, 1.5, 0.64951905283833
|
||||
1.5, 1.5, 1.83711730708738
|
||||
2.25, 1.5, 3.375
|
||||
3, 1.5, 5.19615242270663
|
||||
3.75, 1.5, 7.26184377413891
|
||||
4.5, 1.5, 9.54594154601839
|
||||
-1.5, 2.25, "#NUM!"
|
||||
-0.75, 2.25, "#NUM!"
|
||||
0, 2.25, 0
|
||||
0.75, 2.25, 0.52346523324493
|
||||
1.5, 2.25, 2.49003431932572
|
||||
2.25, 2.25, 6.20027091141992
|
||||
3, 2.25, 11.8446661165724
|
||||
3.75, 2.25, 19.5690774636122
|
||||
4.5, 2.25, 29.4936251312199
|
||||
-1.5, 3, -3.375
|
||||
-0.75, 3, -0.421875
|
||||
0, 3, 0
|
||||
0.75, 3, 0.421875
|
||||
1.5, 3, 3.375
|
||||
2.25, 3, 11.390625
|
||||
3, 3, 27
|
||||
3.75, 3, 52.734375
|
||||
4.5, 3, 91.125
|
||||
-1.5, 3.75, "#NUM!"
|
||||
-0.75, 3.75, "#NUM!"
|
||||
0, 3.75, 0
|
||||
0.75, 3.75, 0.34000064249104
|
||||
1.5, 3.75, 4.57448514327484
|
||||
2.25, 3.75, 20.9259143260422
|
||||
3, 3.75, 61.546690537779
|
||||
3.75, 3.75, 142.107583344775
|
||||
4.5, 3.75, 281.544421482804
|
||||
-1.5, 4.5, "#NUM!"
|
||||
-0.75, 4.5, "#NUM!"
|
||||
0, 4.5, 0
|
||||
0.75, 4.5, 0.27401585041617
|
||||
1.5, 4.5, 6.20027091141992
|
||||
2.25, 4.5, 38.443359375
|
||||
3, 4.5, 140.296115413079
|
||||
3.75, 4.5, 382.948792776857
|
||||
4.5, 4.5, 869.873923380926
|
|
@ -0,0 +1,13 @@
|
|||
-1.5, -1
|
||||
-1, -1
|
||||
-0.5, -1
|
||||
0, 0
|
||||
0.5, 1
|
||||
1, 1
|
||||
1.5, 1
|
||||
2, 1
|
||||
2.5, 1
|
||||
"ABC", "#VALUE!"
|
||||
TRUE, 1
|
||||
FALSE, 0
|
||||
"-3.5", -1
|
Loading…
Reference in New Issue