mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-22 21:36:05 +03:00
Data files for Unit Tests
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85849 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
b9c88ffae4
commit
5da448bbad
96
unitTests/rawTestData/Calculation/DateTime/DATEDIF.data
Normal file
96
unitTests/rawTestData/Calculation/DateTime/DATEDIF.data
Normal file
@ -0,0 +1,96 @@
|
||||
"ABC", "2007-1-10", "Y", "#VALUE!"
|
||||
"2007-1-1", "DEF", "Y", "#VALUE!"
|
||||
"2007-1-1", "2007-1-10", "XYZ", "#VALUE!"
|
||||
"2007-1-10", "2007-1-1", "Y", "#NUM!"
|
||||
"2007-12-31", "2008-1-10", "Y", 0
|
||||
"2007-1-1", "2007-1-10", "Y", 0
|
||||
"2007-1-1", "2007-1-10", "M", 0
|
||||
"2007-1-1", "2007-1-10", "D", 9
|
||||
"2007-1-1", "2007-1-10", "YM", 0
|
||||
"2007-1-1", "2007-1-10", "YD", 9
|
||||
"2007-1-1", "2007-1-10", "MD", 9
|
||||
"2007-1-1", "2007-12-31", "Y", 0
|
||||
"2007-1-1", "2007-12-31", "M", 11
|
||||
"2007-1-1", "2007-12-31", "D", 364
|
||||
"2007-1-1", "2007-12-31", "YM", 11
|
||||
"2007-1-1", "2007-12-31", "YD", 364
|
||||
"2007-1-1", "2007-12-31", "MD", 30
|
||||
"2007-1-1", "2008-7-1", "Y", 1
|
||||
"2007-1-1", "2008-7-1", "M", 18
|
||||
"2007-1-1", "2008-7-1", "D", 547
|
||||
"2007-1-1", "2008-7-1", "YM", 6
|
||||
"2007-1-1", "2008-7-1", "YD", 181
|
||||
"2007-1-1", "2008-7-1", "MD", 0
|
||||
"2007-1-1", "2007-1-31", "Y", 0
|
||||
"2007-1-1", "2007-1-31", "M", 0
|
||||
"2007-1-1", "2007-1-31", "D", 30
|
||||
"2007-1-1", "2007-1-31", "YM", 0
|
||||
"2007-1-1", "2007-1-31", "YD", 30
|
||||
"2007-1-1", "2007-1-31", "MD", 30
|
||||
"2007-1-1", "2007-2-1", "Y", 0
|
||||
"2007-1-1", "2007-2-1", "M", 1
|
||||
"2007-1-1", "2007-2-1", "D", 31
|
||||
"2007-1-1", "2007-2-1", "YM", 1
|
||||
"2007-1-1", "2007-2-1", "YD", 31
|
||||
"2007-1-1", "2007-2-1", "MD", 0
|
||||
"2007-1-1", "2007-2-28", "Y", 0
|
||||
"2007-1-1", "2007-2-28", "M", 1
|
||||
"2007-1-1", "2007-2-28", "D", 58
|
||||
"2007-1-1", "2007-2-28", "YM", 1
|
||||
"2007-1-1", "2007-2-28", "YD", 58
|
||||
"2007-1-1", "2007-2-28", "MD", 27
|
||||
"2007-1-31", "2007-2-1", "Y", 0
|
||||
"2007-1-31", "2007-2-1", "M", 0
|
||||
"2007-1-31", "2007-2-1", "D", 1
|
||||
"2007-1-31", "2007-2-1", "YM", 0
|
||||
"2007-1-31", "2007-2-1", "YD", 1
|
||||
"2007-1-31", "2007-2-1", "MD", 1
|
||||
"2007-1-31", "2007-3-1", "Y", 0
|
||||
"2007-1-31", "2007-3-1", "M", 1
|
||||
"2007-1-31", "2007-3-1", "D", 29
|
||||
"2007-1-31", "2007-3-1", "YM", 1
|
||||
"2007-1-31", "2007-3-1", "YD", 29
|
||||
"2007-1-31", "2007-3-1", "MD", -2
|
||||
"2007-1-31", "2007-3-31", "Y", 0
|
||||
"2007-1-31", "2007-3-31", "M", 2
|
||||
"2007-1-31", "2007-3-31", "D", 59
|
||||
"2007-1-31", "2007-3-31", "YM", 2
|
||||
"2007-1-31", "2007-3-31", "YD", 59
|
||||
"2007-1-31", "2007-3-31", "MD", 0
|
||||
"2008-1-1", "2008-9-1", "Y", 0
|
||||
"2008-1-1", "2008-9-1", "M", 8
|
||||
"2008-1-1", "2008-9-1", "D", 244
|
||||
"2008-1-1", "2008-9-1", "YM", 8
|
||||
"2008-1-1", "2008-9-1", "YD", 244
|
||||
"2008-1-1", "2008-9-1", "MD", 0
|
||||
"2007-2-1", "2008-4-1", "Y", 1
|
||||
"2007-2-1", "2008-4-1", "M", 14
|
||||
"2007-2-1", "2008-4-1", "D", 425
|
||||
"2007-2-1", "2008-4-1", "YM", 2
|
||||
"2007-2-1", "2008-4-1", "YD", 59
|
||||
"2007-2-1", "2008-4-1", "MD", 0
|
||||
"1960-12-19", "2008-6-28", "Y", 47
|
||||
"1960-12-19", "2008-6-28", "M", 570
|
||||
"1960-12-19", "2008-6-28", "D", 17358
|
||||
"1960-12-19", "2008-6-28", "YM", 6
|
||||
"1960-12-19", "2008-6-28", "YD", 191
|
||||
"1960-12-19", "2008-6-28", "MD", 9
|
||||
"1982-12-7", "2008-6-28", "Y", 25
|
||||
"1982-12-7", "2008-6-28", "M", 306
|
||||
"1982-12-7", "2008-6-28", "D", 9335
|
||||
"1982-12-7", "2008-6-28", "YM", 6
|
||||
"1982-12-7", "2008-6-28", "YD", 203
|
||||
"1982-12-7", "2008-6-28", "MD", 21
|
||||
"2007-12-25", "2010-3-17", "Y", 2
|
||||
"2007-12-25", "2010-3-17", "M", 26
|
||||
"2007-12-25", "2010-3-17", "D", 813
|
||||
"2007-12-25", "2010-3-17", "YM", 2
|
||||
"2007-12-25", "2010-3-17", "YD", 82
|
||||
"2007-12-25", "2010-3-17", "MD", 20
|
||||
"19-12-1960", "26-01-2012" "Y", 51
|
||||
"19-12-1960", "26-01-2012" "M", 613
|
||||
"19-12-1960", "26-01-2012" "D", 18665
|
||||
"19-12-1960", "26-01-2012" "YM", 1
|
||||
"19-12-1960", "26-01-2012" "YD", 38
|
||||
"19-12-1960", "26-01-2012" "MD", 7
|
||||
"19-12-1960", "12-12-2012" "Y", 50
|
@ -37,7 +37,7 @@
|
||||
"The 1st day of March 2007", "#VALUE!"
|
||||
"1 Jan", 40909
|
||||
"31/12", 41274
|
||||
"12/31", 11658 // ???
|
||||
"12/31", 11658 // Excel reads as 1st December 1931, not 31st December in current year
|
||||
"5-JUL", 41095
|
||||
"5 Jul", 41095
|
||||
"12/2008", 39783
|
||||
|
34
unitTests/rawTestData/Calculation/DateTime/DAYS360.data
Normal file
34
unitTests/rawTestData/Calculation/DateTime/DAYS360.data
Normal file
@ -0,0 +1,34 @@
|
||||
"ABC", "2007-1-10", FALSE, "#VALUE!"
|
||||
"2007-1-1", "DEF", TRUE, "#VALUE!"
|
||||
"2007-1-1", "2007-1-10", "XYZ", "#VALUE!"
|
||||
"2007-1-10", "2007-1-1", "Y", "#NUM!"
|
||||
"2007-1-1", "2007-1-10", FALSE, 9
|
||||
"2007-1-1", "2007-1-10", TRUE, 9
|
||||
"2007-1-1", "2007-12-31", FALSE, 360
|
||||
"2007-1-1", "2007-12-31", TRUE, 359
|
||||
"2007-1-1", "2008-7-1", FALSE, 540
|
||||
"2007-1-1", "2008-7-1", TRUE, 540
|
||||
"2007-1-1", "2007-1-31", FALSE, 30
|
||||
"2007-1-1", "2007-1-31", TRUE, 29
|
||||
"2007-1-1", "2007-2-1", FALSE, 30
|
||||
"2007-1-1", "2007-2-1", TRUE, 30
|
||||
"2007-1-1", "2007-2-28", FALSE, 57
|
||||
"2007-1-1", "2007-2-28", TRUE, 57
|
||||
"2007-1-31", "2007-2-1", FALSE, 1
|
||||
"2007-1-31", "2007-2-1", TRUE, 1
|
||||
"2007-1-31", "2007-3-1", FALSE, 31
|
||||
"2007-1-31", "2007-3-1", TRUE, 31
|
||||
"2007-1-31", "2007-3-31", FALSE, 60
|
||||
"2007-1-31", "2007-3-31", TRUE, 60
|
||||
"2008-1-1", "2008-9-1", FALSE, 240
|
||||
"2008-1-1", "2008-9-1", TRUE, 240
|
||||
"2007-2-1", "2008-4-1", FALSE, 420
|
||||
"2007-2-1", "2008-4-1", TRUE, 420
|
||||
"1960-12-19", "2008-6-28", FALSE, 17109
|
||||
"1960-12-19", "2008-6-28", TRUE, 17109
|
||||
"1982-12-7", "2008-6-28", FALSE, 9201
|
||||
"1982-12-7", "2008-6-28", TRUE, 9201
|
||||
"2000-2-28", "2000-3-31", FALSE, 33
|
||||
"2000-2-28", "2000-3-31", TRUE, 32
|
||||
"2000-2-29", "2000-3-31", FALSE, 30
|
||||
"2000-2-29", "2000-3-31", TRUE, 31
|
@ -10,7 +10,7 @@
|
||||
22269.0, 0, 22281
|
||||
22269.0, 2, 22340
|
||||
22269.0, 110, 25627
|
||||
22269.0, -110, 25627
|
||||
22269.0, -110, 18932
|
||||
22269.0, 3, 22371
|
||||
22269.0, 3.75, 22371
|
||||
"15-Mar-2007", "ABC", "#VALUE!"
|
||||
|
12
unitTests/rawTestData/Calculation/DateTime/WORKDAY.data
Normal file
12
unitTests/rawTestData/Calculation/DateTime/WORKDAY.data
Normal file
@ -0,0 +1,12 @@
|
||||
"1-Jan-2007", "ABC", "#VALUE!"
|
||||
"1-Jan-2007", 9, 39094
|
||||
"18-Jun-2008", 2, 39619
|
||||
"16-Jun-2008", 4, 39619
|
||||
"14-Jun-2008", 6, 39622
|
||||
"14-Jun-2008", 11, 39629
|
||||
"14-Jun-2008", -2, 39611
|
||||
"14-Jun-2008", -6, 39605
|
||||
"19-Dec-2008", 10, 39815
|
||||
"19-Dec-2008", 10, "25-Dec-2008", "26-Dec-2008", "01-Jan-2009", 39820
|
||||
"19-Dec-2008", 10, {"25-Dec-2008"|"26-Dec-2008"|"01-Jan-2009"}, 39820
|
||||
39820, -10, {"25-Dec-2008"|"26-Dec-2008"|"01-Jan-2009"}, 39801
|
65
unitTests/rawTestData/Calculation/DateTime/YEARFRAC.data
Normal file
65
unitTests/rawTestData/Calculation/DateTime/YEARFRAC.data
Normal file
@ -0,0 +1,65 @@
|
||||
"2007-1-1", "2007-1-10", 0, 0.025
|
||||
"2007-1-1", "2007-1-10", 1, 0.02465753424658
|
||||
"2007-1-1", "2007-1-10", 2, 0.025
|
||||
"2007-1-1", "2007-1-10", 3, 0.02465753424658
|
||||
"2007-1-1", "2007-1-10", 4, 0.025
|
||||
"2007-1-1", "2007-12-31", 0, 1.0
|
||||
"2007-1-1", "2007-12-31", 1, 0.99726027397260
|
||||
"2007-1-1", "2007-12-31", 2, 1.01111111111111
|
||||
"2007-1-1", "2007-12-31", 3, 0.99726027397260
|
||||
"2007-1-1", "2007-12-31", 4, 0.99722222222222
|
||||
"2007-1-1", "2008-7-1", 0, 1.5
|
||||
"2007-1-1", "2008-7-1", 1, 1.49658002735978
|
||||
"2007-1-1", "2008-7-1", 2, 1.51944444444444
|
||||
"2007-1-1", "2008-7-1", 3, 1.49863013698630
|
||||
"2007-1-1", "2008-7-1", 4, 1.5
|
||||
"2007-1-1", "2007-1-31", 0, 0.08333333333333
|
||||
"2007-1-1", "2007-1-31", 1, 0.08219178082192
|
||||
"2007-1-1", "2007-1-31", 2, 0.08333333333333
|
||||
"2007-1-1", "2007-1-31", 3, 0.08219178082192
|
||||
"2007-1-1", "2007-1-31", 4, 0.08055555555556
|
||||
"2007-1-1", "2007-2-1", 0, 0.08333333333333
|
||||
"2007-1-1", "2007-2-1", 1, 0.08493150684932
|
||||
"2007-1-1", "2007-2-1", 2, 0.08611111111111
|
||||
"2007-1-1", "2007-2-1", 3, 0.08493150684932
|
||||
"2007-1-1", "2007-2-1", 4, 0.08333333333333
|
||||
"2007-1-1", "2007-2-28", 0, 0.15833333333333
|
||||
"2007-1-1", "2007-2-28", 1, 0.15890410958904
|
||||
"2007-1-1", "2007-2-28", 2, 0.16111111111111
|
||||
"2007-1-1", "2007-2-28", 3, 0.15890410958904
|
||||
"2007-1-1", "2007-2-28", 4, 0.15833333333333
|
||||
"2007-1-31", "2007-2-1", 0, 0.00277777777778
|
||||
"2007-1-31", "2007-2-1", 1, 0.00273972602740
|
||||
"2007-1-31", "2007-2-1", 2, 0.00277777777778
|
||||
"2007-1-31", "2007-2-1", 3, 0.00273972602740
|
||||
"2007-1-31", "2007-2-1", 4, 0.00277777777778
|
||||
"2007-1-31", "2007-3-1", 0, 0.08611111111111
|
||||
"2007-1-31", "2007-3-1", 1, 0.07945205479452
|
||||
"2007-1-31", "2007-3-1", 2, 0.08055555555556
|
||||
"2007-1-31", "2007-3-1", 3, 0.07945205479452
|
||||
"2007-1-31", "2007-3-1", 4, 0.08611111111111
|
||||
"2007-1-31", "2007-3-31", 0, 0.16666666666667
|
||||
"2007-1-31", "2007-3-31", 1, 0.16164383561644
|
||||
"2007-1-31", "2007-3-31", 2, 0.16388888888889
|
||||
"2007-1-31", "2007-3-31", 3, 0.16164383561644
|
||||
"2007-1-31", "2007-3-31", 4, 0.16666666666667
|
||||
"2008-1-1", "2008-9-1", 0, 0.66666666666667
|
||||
"2008-1-1", "2008-9-1", 1, 0.66666666666667
|
||||
"2008-1-1", "2008-9-1", 2, 0.67777777777778
|
||||
"2008-1-1", "2008-9-1", 3, 0.66849315068493
|
||||
"2008-1-1", "2008-9-1", 4, 0.66666666666667
|
||||
"2007-2-1", "2008-4-1", 0, 1.16666666666667
|
||||
"2007-2-1", "2008-4-1", 1, 1.16279069767442
|
||||
"2007-2-1", "2008-4-1", 2, 1.18055555555556
|
||||
"2007-2-1", "2008-4-1", 3, 1.16438356164384
|
||||
"2007-2-1", "2008-4-1", 4, 1.16666666666667
|
||||
"1960-12-19", "2008-6-28", 0, 47.525
|
||||
"1960-12-19", "2008-6-28", 1, 47.52162252765670
|
||||
"1960-12-19", "2008-6-28", 2, 48.21666666666670
|
||||
"1960-12-19", "2008-6-28", 3, 47.55616438356160
|
||||
"1960-12-19", "2008-6-28", 4, 47.525
|
||||
"1982-12-7", "2008-6-28", 0, 25.55833333333330
|
||||
"1982-12-7", "2008-6-28", 1, 25.55718921111340
|
||||
"1982-12-7", "2008-6-28", 2, 25.93055555555560
|
||||
"1982-12-7", "2008-6-28", 3, 25.57534246575340
|
||||
"1982-12-7", "2008-6-28", 4, 25.55833333333330
|
3
unitTests/rawTestData/Calculation/MathTrig/MDETERM.data
Normal file
3
unitTests/rawTestData/Calculation/MathTrig/MDETERM.data
Normal file
@ -0,0 +1,3 @@
|
||||
{1|2|3;4|5|6;7|8|9}, 6.661338147750940E-16
|
||||
{10|20|30;40|50|60;70|80|90}, -4.263256414560600E-12
|
||||
{8|1|6;3|5|7;4|9|2}, -3.6E+02
|
3
unitTests/rawTestData/Calculation/MathTrig/MINVERSE.data
Normal file
3
unitTests/rawTestData/Calculation/MathTrig/MINVERSE.data
Normal file
@ -0,0 +1,3 @@
|
||||
{1|2|3;4|5|6;7|8|9}, {-4.50359962737050E+15|9.00719925474099E+15|-4.50359962737050E+15;9.00719925474100E+15|-1.80143985094820E+16|9.00719925474099E+15;-4.50359962737050E+15|9.00719925474099E+15|-4.50359962737050E+15}
|
||||
{10|20|30;40|50|60;70|80|90}, {7.03687441776639E+13|-1.40737488355328E+14|7.03687441776640E+13;-1.40737488355328E+14|2.81474976710656E+14|-1.40737488355328E+14;7.03687441776641E+13|-1.40737488355328E+14|7.03687441776640E+13}
|
||||
{8|1|6;3|5|7;4|9|2}, {1.47222222222222E-01|-1.44444444444444E-01|6.38888888888889E-02;-6.11111111111111E-02|2.22222222222222E-02|1.05555555555556E-01;-1.94444444444444E-02|1.88888888888889E-01|-1.02777777777778E-01}
|
9
unitTests/rawTestData/Calculation/MathTrig/MOD.data
Normal file
9
unitTests/rawTestData/Calculation/MathTrig/MOD.data
Normal file
@ -0,0 +1,9 @@
|
||||
19, 17, 2
|
||||
19, -13, -7
|
||||
34, 17, 0
|
||||
34, 0, "#DIV/0!"
|
||||
3, 2, 1
|
||||
-3, 2, 1
|
||||
3, -2, -1
|
||||
-3, -2, -1
|
||||
2.5, 1.3, 1.2
|
11
unitTests/rawTestData/Calculation/MathTrig/MROUND.data
Normal file
11
unitTests/rawTestData/Calculation/MathTrig/MROUND.data
Normal file
@ -0,0 +1,11 @@
|
||||
10, 3, 9
|
||||
-10, -3, -9
|
||||
1.3, 0.2, 1.4
|
||||
5, 0, 0
|
||||
3.14159, 0.002, 3.142
|
||||
-3.14159, -.02, -3.14
|
||||
31415.92654, 10, 31420
|
||||
31415.92654, 1, 31416
|
||||
5, -2, "#NUM!"
|
||||
"ABC", 1, "#VALUE!"
|
||||
1.234, "ABC", "#VALUE!"
|
5
unitTests/rawTestData/Calculation/MathTrig/ROMAN.data
Normal file
5
unitTests/rawTestData/Calculation/MathTrig/ROMAN.data
Normal file
@ -0,0 +1,5 @@
|
||||
49, "XLIX"
|
||||
50, "L"
|
||||
2012, "MMXII"
|
||||
999, "CMXCIX"
|
||||
499, "CDXCIX"
|
14
unitTests/rawTestData/Calculation/MathTrig/ROUNDDOWN.data
Normal file
14
unitTests/rawTestData/Calculation/MathTrig/ROUNDDOWN.data
Normal file
@ -0,0 +1,14 @@
|
||||
662.79, 0, 662
|
||||
662.79, 1, 662.7
|
||||
54.1, -1, 50
|
||||
55.1, -1, 50
|
||||
-23.67, 1, -23.6
|
||||
3.2, 0, 3
|
||||
3.2, 0.01, 3
|
||||
76.9, 0, 76
|
||||
3.14159, 3, 3.141
|
||||
-3.14159, 1, -3.1
|
||||
31415.92654, -2, 31400
|
||||
31415.92654, -1, 31410
|
||||
"ABC", 1, "#VALUE!"
|
||||
1.234, "ABC", "#VALUE!"
|
14
unitTests/rawTestData/Calculation/MathTrig/ROUNDUP.data
Normal file
14
unitTests/rawTestData/Calculation/MathTrig/ROUNDUP.data
Normal file
@ -0,0 +1,14 @@
|
||||
662.79, 0, 663
|
||||
662.79, 1, 662.8
|
||||
54.1, -1, 60
|
||||
55.1, -1, 60
|
||||
-23.62, 1, -23.7
|
||||
3.2, 0, 4
|
||||
3.2, 0.01, 4
|
||||
76.9, 0, 77
|
||||
3.14159, 3, 3.142
|
||||
-3.14159, 1, -3.2
|
||||
31415.92654, -2, 31500
|
||||
31415.92654, -1, 31420
|
||||
"ABC", 1, "#VALUE!"
|
||||
1.234, "ABC", "#VALUE!"
|
6
unitTests/rawTestData/Calculation/TextData/CHAR.data
Normal file
6
unitTests/rawTestData/Calculation/TextData/CHAR.data
Normal file
@ -0,0 +1,6 @@
|
||||
"ABC", "#VALUE!"
|
||||
-5, "#VALUE!"
|
||||
65, "A"
|
||||
123, "{"
|
||||
126, "~"
|
||||
255, "ÿ"
|
5
unitTests/rawTestData/Calculation/TextData/CLEAN.data
Normal file
5
unitTests/rawTestData/Calculation/TextData/CLEAN.data
Normal file
@ -0,0 +1,5 @@
|
||||
"HELLO ", "HELLO "
|
||||
" HELLO", "HELLO"
|
||||
"HELLO WORLD", "HELLO WORLD"
|
||||
TRUE, "TRUE"
|
||||
NULL, NULL
|
11
unitTests/rawTestData/Calculation/TextData/CODE.data
Normal file
11
unitTests/rawTestData/Calculation/TextData/CODE.data
Normal file
@ -0,0 +1,11 @@
|
||||
, "#VALUE!"
|
||||
"", "#VALUE!"
|
||||
"ABC", 65
|
||||
123, 49
|
||||
TRUE, 84
|
||||
"DEF", 68
|
||||
"PHPExcel", 80
|
||||
1.5, 49
|
||||
"Mark Baker", 77
|
||||
"mark baker", 109
|
||||
"£125.00", 163
|
@ -0,0 +1,3 @@
|
||||
"ABCDE", "FGHIJ", "ABCDEFGHIJ"
|
||||
1, 2, 3, "123"
|
||||
"Boolean", "-", TRUE, "Boolean-TRUE"
|
6
unitTests/rawTestData/Calculation/TextData/DOLLAR.data
Normal file
6
unitTests/rawTestData/Calculation/TextData/DOLLAR.data
Normal file
@ -0,0 +1,6 @@
|
||||
123.456, 2, '"$123.46"'
|
||||
123.321, 2, '"$123.32"'
|
||||
1234567, -3, '"$1,235,000"'
|
||||
1234567, -5, '"$1,200,000"'
|
||||
"ABC", 2, "#NUM!"
|
||||
123.456, "ABC", "#NUM!"
|
11
unitTests/rawTestData/Calculation/TextData/FIND.data
Normal file
11
unitTests/rawTestData/Calculation/TextData/FIND.data
Normal file
@ -0,0 +1,11 @@
|
||||
"E", "QWERTYUIOP", 3
|
||||
"D", "ABCDEFGHI", 4
|
||||
"E", TRUE, 4
|
||||
"E", FALSE, 5
|
||||
"A", "Mark Baker", "#VALUE!"
|
||||
"A", "MARK BAKER", 2
|
||||
"a", "Mark Baker", 2, 2
|
||||
"k", "Mark Baker", 2, 4
|
||||
"k", "Mark Baker", 5, 8
|
||||
"a", "Mark Baker", 3, 7
|
||||
"BITE", "BIT", "#VALUE!"
|
5
unitTests/rawTestData/Calculation/TextData/FIXED.data
Normal file
5
unitTests/rawTestData/Calculation/TextData/FIXED.data
Normal file
@ -0,0 +1,5 @@
|
||||
123456.789, 2, FALSE, '"123,456.79"'
|
||||
123456.789, 1, TRUE, '"123456.8"'
|
||||
123456.789, 2, TRUE, '"123456.79"'
|
||||
"ABC", 2, NULL, "#NUM!"
|
||||
123.456, "ABC", NULL, "#NUM!"
|
6
unitTests/rawTestData/Calculation/TextData/LEFT.data
Normal file
6
unitTests/rawTestData/Calculation/TextData/LEFT.data
Normal file
@ -0,0 +1,6 @@
|
||||
, 1, ""
|
||||
"", 1, ""
|
||||
"QWERTYUIOP", -1, "#VALUE!"
|
||||
"ABCDEFGHI", 3, "ABC"
|
||||
TRUE, 2, "TR"
|
||||
FALSE, 2, "FA"
|
6
unitTests/rawTestData/Calculation/TextData/LEN.data
Normal file
6
unitTests/rawTestData/Calculation/TextData/LEN.data
Normal file
@ -0,0 +1,6 @@
|
||||
, 0
|
||||
"", 0
|
||||
"AbCdEfGhI", 9
|
||||
"MARK BAKER", 10
|
||||
TRUE, 4
|
||||
FALSE, 5
|
4
unitTests/rawTestData/Calculation/TextData/LOWER.data
Normal file
4
unitTests/rawTestData/Calculation/TextData/LOWER.data
Normal file
@ -0,0 +1,4 @@
|
||||
"AbCdEfGhI", "abcdefghi"
|
||||
"MARK BAKER", "mark baker"
|
||||
TRUE, "true"
|
||||
FALSE, "false"
|
9
unitTests/rawTestData/Calculation/TextData/MID.data
Normal file
9
unitTests/rawTestData/Calculation/TextData/MID.data
Normal file
@ -0,0 +1,9 @@
|
||||
, 1, 1, ""
|
||||
"", 1, 1, ""
|
||||
"QWERTYUIOP", -1, 1, "#VALUE!"
|
||||
"QWERTYUIOP", 5, -1, "#VALUE!"
|
||||
"QWERTYUIOP", 5, ""
|
||||
"QWERTYUIOP", 8, 20, "IOP"
|
||||
"ABCDEFGHI", 4, 3, "DEF"
|
||||
TRUE, 2, 1, "R"
|
||||
FALSE, 2, 2, "AL"
|
3
unitTests/rawTestData/Calculation/TextData/PROPER.data
Normal file
3
unitTests/rawTestData/Calculation/TextData/PROPER.data
Normal file
@ -0,0 +1,3 @@
|
||||
"MARK BAKER", "Mark Baker"
|
||||
TRUE, "True"
|
||||
FALSE, "False"
|
4
unitTests/rawTestData/Calculation/TextData/REPLACE.data
Normal file
4
unitTests/rawTestData/Calculation/TextData/REPLACE.data
Normal file
@ -0,0 +1,4 @@
|
||||
"QWERTYUIOP", 3, 3, "DFG", "QWDFGYUIOP"
|
||||
"QWERTYUIOP", 5, 3, "DFG", "QWERDFGIOP"
|
||||
"QWERTYUIOP", 3, 0, "DFG", "QWDFGERTYUIOP"
|
||||
"QWERTYUIOP", 5, 0, "DFG", "QWERDFGTYUIOP"
|
6
unitTests/rawTestData/Calculation/TextData/RIGHT.data
Normal file
6
unitTests/rawTestData/Calculation/TextData/RIGHT.data
Normal file
@ -0,0 +1,6 @@
|
||||
, 1, ""
|
||||
"", 1, ""
|
||||
"QWERTYUIOP", -1, "#VALUE!"
|
||||
"ABCDEFGHI", 3, "GHI"
|
||||
TRUE, 2, "UE"
|
||||
FALSE, 2, "SE"
|
11
unitTests/rawTestData/Calculation/TextData/SEARCH.data
Normal file
11
unitTests/rawTestData/Calculation/TextData/SEARCH.data
Normal file
@ -0,0 +1,11 @@
|
||||
"E", "QWERTYUIOP", 3
|
||||
"D", "ABCDEFGHI", 4
|
||||
"E", TRUE, 4
|
||||
"E", FALSE, 5
|
||||
"A", "Mark Baker", 2
|
||||
"C", "Mark Baker", "#VALUE!"
|
||||
"A", "Mark Baker", 3, 7
|
||||
"K", "Mark Baker", 4
|
||||
"K", "Mark Baker", 5, 8
|
||||
"A", "Mark Baker", 2, 2
|
||||
"BITE", "BIT", "#VALUE!"
|
@ -0,0 +1,4 @@
|
||||
"QWERTYUIOP", "ERT", "DFG", "QWDFGYUIOP"
|
||||
"Mark Baker", "a", "x", "Mxrk Bxker"
|
||||
"Mark Baker", "a", "x", 1, "Mxrk Baker"
|
||||
"Mark Baker", "x", "a", 1, "Mark Baker"
|
5
unitTests/rawTestData/Calculation/TextData/T.data
Normal file
5
unitTests/rawTestData/Calculation/TextData/T.data
Normal file
@ -0,0 +1,5 @@
|
||||
123456.789, NULL
|
||||
"123456.789", "123456.789"
|
||||
"Mark Baker", "Mark Baker"
|
||||
NULL, NULL
|
||||
TRUE, NULL
|
8
unitTests/rawTestData/Calculation/TextData/TEXT.data
Normal file
8
unitTests/rawTestData/Calculation/TextData/TEXT.data
Normal file
@ -0,0 +1,8 @@
|
||||
123.456, '"$#,##0.00"', '"$123.46"'
|
||||
123.456, '"#,##0.00"', '"123.46"'
|
||||
123.456, '"#,##0"', '"123"'
|
||||
123.456, "0000", '"0123"'
|
||||
123456.789, '"$#,##0.00"', '"$123,456.79"'
|
||||
123456.789, '"#,##0.00"', '"123,456.79"'
|
||||
"19-Dec-1960", "yyyy-mm-dd", "1960-12-19"
|
||||
"1-Jan-2012", "yyyy-mm-dd", "2012-01-01"
|
7
unitTests/rawTestData/Calculation/TextData/TRIM.data
Normal file
7
unitTests/rawTestData/Calculation/TextData/TRIM.data
Normal file
@ -0,0 +1,7 @@
|
||||
"HELLO ", "HELLO"
|
||||
" HELLO", "HELLO"
|
||||
" HELLO ", "HELLO"
|
||||
" HELLO", " HELLO"
|
||||
"HELLO WORLD", "HELLO WORLD"
|
||||
TRUE, "TRUE"
|
||||
NULL, NULL
|
4
unitTests/rawTestData/Calculation/TextData/UPPER.data
Normal file
4
unitTests/rawTestData/Calculation/TextData/UPPER.data
Normal file
@ -0,0 +1,4 @@
|
||||
"AbCdEfGhI", "ABCDEFGHI"
|
||||
"mark baker", "MARK BAKER"
|
||||
TRUE, "TRUE"
|
||||
FALSE, "FALSE"
|
Loading…
Reference in New Issue
Block a user