From 5da448bbad82cc16d6203959bded77da270c3042 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Sun, 29 Jan 2012 14:23:06 +0000 Subject: [PATCH] Data files for Unit Tests git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85849 2327b42d-5241-43d6-9e2a-de5ac946f064 --- .../Calculation/DateTime/DATEDIF.data | 96 +++++++++++++++++++ .../Calculation/DateTime/DATEVALUE.data | 2 +- .../Calculation/DateTime/DAYS360.data | 34 +++++++ .../Calculation/DateTime/EOMONTH.data | 2 +- .../Calculation/DateTime/WORKDAY.data | 12 +++ .../Calculation/DateTime/YEARFRAC.data | 65 +++++++++++++ .../Calculation/MathTrig/MDETERM.data | 3 + .../Calculation/MathTrig/MINVERSE.data | 3 + .../rawTestData/Calculation/MathTrig/MOD.data | 9 ++ .../Calculation/MathTrig/MROUND.data | 11 +++ .../Calculation/MathTrig/ROMAN.data | 5 + .../Calculation/MathTrig/ROUNDDOWN.data | 14 +++ .../Calculation/MathTrig/ROUNDUP.data | 14 +++ .../Calculation/TextData/CHAR.data | 6 ++ .../Calculation/TextData/CLEAN.data | 5 + .../Calculation/TextData/CODE.data | 11 +++ .../Calculation/TextData/CONCATENATE.data | 3 + .../Calculation/TextData/DOLLAR.data | 6 ++ .../Calculation/TextData/FIND.data | 11 +++ .../Calculation/TextData/FIXED.data | 5 + .../Calculation/TextData/LEFT.data | 6 ++ .../rawTestData/Calculation/TextData/LEN.data | 6 ++ .../Calculation/TextData/LOWER.data | 4 + .../rawTestData/Calculation/TextData/MID.data | 9 ++ .../Calculation/TextData/PROPER.data | 3 + .../Calculation/TextData/REPLACE.data | 4 + .../Calculation/TextData/RIGHT.data | 6 ++ .../Calculation/TextData/SEARCH.data | 11 +++ .../Calculation/TextData/SUBSTITUTE.data | 4 + .../rawTestData/Calculation/TextData/T.data | 5 + .../Calculation/TextData/TEXT.data | 8 ++ .../Calculation/TextData/TRIM.data | 7 ++ .../Calculation/TextData/UPPER.data | 4 + 33 files changed, 392 insertions(+), 2 deletions(-) create mode 100644 unitTests/rawTestData/Calculation/DateTime/DATEDIF.data create mode 100644 unitTests/rawTestData/Calculation/DateTime/DAYS360.data create mode 100644 unitTests/rawTestData/Calculation/DateTime/WORKDAY.data create mode 100644 unitTests/rawTestData/Calculation/DateTime/YEARFRAC.data create mode 100644 unitTests/rawTestData/Calculation/MathTrig/MDETERM.data create mode 100644 unitTests/rawTestData/Calculation/MathTrig/MINVERSE.data create mode 100644 unitTests/rawTestData/Calculation/MathTrig/MOD.data create mode 100644 unitTests/rawTestData/Calculation/MathTrig/MROUND.data create mode 100644 unitTests/rawTestData/Calculation/MathTrig/ROMAN.data create mode 100644 unitTests/rawTestData/Calculation/MathTrig/ROUNDDOWN.data create mode 100644 unitTests/rawTestData/Calculation/MathTrig/ROUNDUP.data create mode 100644 unitTests/rawTestData/Calculation/TextData/CHAR.data create mode 100644 unitTests/rawTestData/Calculation/TextData/CLEAN.data create mode 100644 unitTests/rawTestData/Calculation/TextData/CODE.data create mode 100644 unitTests/rawTestData/Calculation/TextData/CONCATENATE.data create mode 100644 unitTests/rawTestData/Calculation/TextData/DOLLAR.data create mode 100644 unitTests/rawTestData/Calculation/TextData/FIND.data create mode 100644 unitTests/rawTestData/Calculation/TextData/FIXED.data create mode 100644 unitTests/rawTestData/Calculation/TextData/LEFT.data create mode 100644 unitTests/rawTestData/Calculation/TextData/LEN.data create mode 100644 unitTests/rawTestData/Calculation/TextData/LOWER.data create mode 100644 unitTests/rawTestData/Calculation/TextData/MID.data create mode 100644 unitTests/rawTestData/Calculation/TextData/PROPER.data create mode 100644 unitTests/rawTestData/Calculation/TextData/REPLACE.data create mode 100644 unitTests/rawTestData/Calculation/TextData/RIGHT.data create mode 100644 unitTests/rawTestData/Calculation/TextData/SEARCH.data create mode 100644 unitTests/rawTestData/Calculation/TextData/SUBSTITUTE.data create mode 100644 unitTests/rawTestData/Calculation/TextData/T.data create mode 100644 unitTests/rawTestData/Calculation/TextData/TEXT.data create mode 100644 unitTests/rawTestData/Calculation/TextData/TRIM.data create mode 100644 unitTests/rawTestData/Calculation/TextData/UPPER.data diff --git a/unitTests/rawTestData/Calculation/DateTime/DATEDIF.data b/unitTests/rawTestData/Calculation/DateTime/DATEDIF.data new file mode 100644 index 0000000..29c36d4 --- /dev/null +++ b/unitTests/rawTestData/Calculation/DateTime/DATEDIF.data @@ -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 diff --git a/unitTests/rawTestData/Calculation/DateTime/DATEVALUE.data b/unitTests/rawTestData/Calculation/DateTime/DATEVALUE.data index a7acb02..281c707 100644 --- a/unitTests/rawTestData/Calculation/DateTime/DATEVALUE.data +++ b/unitTests/rawTestData/Calculation/DateTime/DATEVALUE.data @@ -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 diff --git a/unitTests/rawTestData/Calculation/DateTime/DAYS360.data b/unitTests/rawTestData/Calculation/DateTime/DAYS360.data new file mode 100644 index 0000000..ef1af47 --- /dev/null +++ b/unitTests/rawTestData/Calculation/DateTime/DAYS360.data @@ -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 diff --git a/unitTests/rawTestData/Calculation/DateTime/EOMONTH.data b/unitTests/rawTestData/Calculation/DateTime/EOMONTH.data index bd9063d..641228c 100644 --- a/unitTests/rawTestData/Calculation/DateTime/EOMONTH.data +++ b/unitTests/rawTestData/Calculation/DateTime/EOMONTH.data @@ -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!" diff --git a/unitTests/rawTestData/Calculation/DateTime/WORKDAY.data b/unitTests/rawTestData/Calculation/DateTime/WORKDAY.data new file mode 100644 index 0000000..c4def47 --- /dev/null +++ b/unitTests/rawTestData/Calculation/DateTime/WORKDAY.data @@ -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 diff --git a/unitTests/rawTestData/Calculation/DateTime/YEARFRAC.data b/unitTests/rawTestData/Calculation/DateTime/YEARFRAC.data new file mode 100644 index 0000000..c56804d --- /dev/null +++ b/unitTests/rawTestData/Calculation/DateTime/YEARFRAC.data @@ -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 diff --git a/unitTests/rawTestData/Calculation/MathTrig/MDETERM.data b/unitTests/rawTestData/Calculation/MathTrig/MDETERM.data new file mode 100644 index 0000000..2222a5a --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/MDETERM.data @@ -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 diff --git a/unitTests/rawTestData/Calculation/MathTrig/MINVERSE.data b/unitTests/rawTestData/Calculation/MathTrig/MINVERSE.data new file mode 100644 index 0000000..c6838ee --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/MINVERSE.data @@ -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} diff --git a/unitTests/rawTestData/Calculation/MathTrig/MOD.data b/unitTests/rawTestData/Calculation/MathTrig/MOD.data new file mode 100644 index 0000000..efcd488 --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/MOD.data @@ -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 diff --git a/unitTests/rawTestData/Calculation/MathTrig/MROUND.data b/unitTests/rawTestData/Calculation/MathTrig/MROUND.data new file mode 100644 index 0000000..3a9a560 --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/MROUND.data @@ -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!" diff --git a/unitTests/rawTestData/Calculation/MathTrig/ROMAN.data b/unitTests/rawTestData/Calculation/MathTrig/ROMAN.data new file mode 100644 index 0000000..3ab436a --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/ROMAN.data @@ -0,0 +1,5 @@ +49, "XLIX" +50, "L" +2012, "MMXII" +999, "CMXCIX" +499, "CDXCIX" diff --git a/unitTests/rawTestData/Calculation/MathTrig/ROUNDDOWN.data b/unitTests/rawTestData/Calculation/MathTrig/ROUNDDOWN.data new file mode 100644 index 0000000..5430143 --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/ROUNDDOWN.data @@ -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!" diff --git a/unitTests/rawTestData/Calculation/MathTrig/ROUNDUP.data b/unitTests/rawTestData/Calculation/MathTrig/ROUNDUP.data new file mode 100644 index 0000000..69f2bcd --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/ROUNDUP.data @@ -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!" diff --git a/unitTests/rawTestData/Calculation/TextData/CHAR.data b/unitTests/rawTestData/Calculation/TextData/CHAR.data new file mode 100644 index 0000000..cadda17 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/CHAR.data @@ -0,0 +1,6 @@ +"ABC", "#VALUE!" +-5, "#VALUE!" +65, "A" +123, "{" +126, "~" +255, "ÿ" diff --git a/unitTests/rawTestData/Calculation/TextData/CLEAN.data b/unitTests/rawTestData/Calculation/TextData/CLEAN.data new file mode 100644 index 0000000..21f0c0d --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/CLEAN.data @@ -0,0 +1,5 @@ +"HELLO ", "HELLO " +" HELLO", "HELLO" +"HELLO WORLD", "HELLO WORLD" +TRUE, "TRUE" +NULL, NULL diff --git a/unitTests/rawTestData/Calculation/TextData/CODE.data b/unitTests/rawTestData/Calculation/TextData/CODE.data new file mode 100644 index 0000000..6565724 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/CODE.data @@ -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 diff --git a/unitTests/rawTestData/Calculation/TextData/CONCATENATE.data b/unitTests/rawTestData/Calculation/TextData/CONCATENATE.data new file mode 100644 index 0000000..7b89846 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/CONCATENATE.data @@ -0,0 +1,3 @@ +"ABCDE", "FGHIJ", "ABCDEFGHIJ" +1, 2, 3, "123" +"Boolean", "-", TRUE, "Boolean-TRUE" diff --git a/unitTests/rawTestData/Calculation/TextData/DOLLAR.data b/unitTests/rawTestData/Calculation/TextData/DOLLAR.data new file mode 100644 index 0000000..aee1b00 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/DOLLAR.data @@ -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!" diff --git a/unitTests/rawTestData/Calculation/TextData/FIND.data b/unitTests/rawTestData/Calculation/TextData/FIND.data new file mode 100644 index 0000000..677d4f0 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/FIND.data @@ -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!" diff --git a/unitTests/rawTestData/Calculation/TextData/FIXED.data b/unitTests/rawTestData/Calculation/TextData/FIXED.data new file mode 100644 index 0000000..cd7d57b --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/FIXED.data @@ -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!" diff --git a/unitTests/rawTestData/Calculation/TextData/LEFT.data b/unitTests/rawTestData/Calculation/TextData/LEFT.data new file mode 100644 index 0000000..e76e009 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/LEFT.data @@ -0,0 +1,6 @@ +, 1, "" +"", 1, "" +"QWERTYUIOP", -1, "#VALUE!" +"ABCDEFGHI", 3, "ABC" +TRUE, 2, "TR" +FALSE, 2, "FA" diff --git a/unitTests/rawTestData/Calculation/TextData/LEN.data b/unitTests/rawTestData/Calculation/TextData/LEN.data new file mode 100644 index 0000000..09676ea --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/LEN.data @@ -0,0 +1,6 @@ +, 0 +"", 0 +"AbCdEfGhI", 9 +"MARK BAKER", 10 +TRUE, 4 +FALSE, 5 diff --git a/unitTests/rawTestData/Calculation/TextData/LOWER.data b/unitTests/rawTestData/Calculation/TextData/LOWER.data new file mode 100644 index 0000000..04148f0 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/LOWER.data @@ -0,0 +1,4 @@ +"AbCdEfGhI", "abcdefghi" +"MARK BAKER", "mark baker" +TRUE, "true" +FALSE, "false" diff --git a/unitTests/rawTestData/Calculation/TextData/MID.data b/unitTests/rawTestData/Calculation/TextData/MID.data new file mode 100644 index 0000000..5d9b503 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/MID.data @@ -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" diff --git a/unitTests/rawTestData/Calculation/TextData/PROPER.data b/unitTests/rawTestData/Calculation/TextData/PROPER.data new file mode 100644 index 0000000..ca14249 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/PROPER.data @@ -0,0 +1,3 @@ +"MARK BAKER", "Mark Baker" +TRUE, "True" +FALSE, "False" diff --git a/unitTests/rawTestData/Calculation/TextData/REPLACE.data b/unitTests/rawTestData/Calculation/TextData/REPLACE.data new file mode 100644 index 0000000..7c8f414 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/REPLACE.data @@ -0,0 +1,4 @@ +"QWERTYUIOP", 3, 3, "DFG", "QWDFGYUIOP" +"QWERTYUIOP", 5, 3, "DFG", "QWERDFGIOP" +"QWERTYUIOP", 3, 0, "DFG", "QWDFGERTYUIOP" +"QWERTYUIOP", 5, 0, "DFG", "QWERDFGTYUIOP" diff --git a/unitTests/rawTestData/Calculation/TextData/RIGHT.data b/unitTests/rawTestData/Calculation/TextData/RIGHT.data new file mode 100644 index 0000000..02bf333 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/RIGHT.data @@ -0,0 +1,6 @@ +, 1, "" +"", 1, "" +"QWERTYUIOP", -1, "#VALUE!" +"ABCDEFGHI", 3, "GHI" +TRUE, 2, "UE" +FALSE, 2, "SE" diff --git a/unitTests/rawTestData/Calculation/TextData/SEARCH.data b/unitTests/rawTestData/Calculation/TextData/SEARCH.data new file mode 100644 index 0000000..9925e69 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/SEARCH.data @@ -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!" diff --git a/unitTests/rawTestData/Calculation/TextData/SUBSTITUTE.data b/unitTests/rawTestData/Calculation/TextData/SUBSTITUTE.data new file mode 100644 index 0000000..be15c94 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/SUBSTITUTE.data @@ -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" diff --git a/unitTests/rawTestData/Calculation/TextData/T.data b/unitTests/rawTestData/Calculation/TextData/T.data new file mode 100644 index 0000000..87f67e9 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/T.data @@ -0,0 +1,5 @@ +123456.789, NULL +"123456.789", "123456.789" +"Mark Baker", "Mark Baker" +NULL, NULL +TRUE, NULL diff --git a/unitTests/rawTestData/Calculation/TextData/TEXT.data b/unitTests/rawTestData/Calculation/TextData/TEXT.data new file mode 100644 index 0000000..6371074 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/TEXT.data @@ -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" diff --git a/unitTests/rawTestData/Calculation/TextData/TRIM.data b/unitTests/rawTestData/Calculation/TextData/TRIM.data new file mode 100644 index 0000000..ea1bd05 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/TRIM.data @@ -0,0 +1,7 @@ +"HELLO ", "HELLO" +" HELLO", "HELLO" +" HELLO ", "HELLO" +" HELLO", " HELLO" +"HELLO WORLD", "HELLO WORLD" +TRUE, "TRUE" +NULL, NULL diff --git a/unitTests/rawTestData/Calculation/TextData/UPPER.data b/unitTests/rawTestData/Calculation/TextData/UPPER.data new file mode 100644 index 0000000..8ebf1d1 --- /dev/null +++ b/unitTests/rawTestData/Calculation/TextData/UPPER.data @@ -0,0 +1,4 @@ +"AbCdEfGhI", "ABCDEFGHI" +"mark baker", "MARK BAKER" +TRUE, "TRUE" +FALSE, "FALSE"