From cbc1e24cb4be038a1e71031d863ae9f8e8cab35f Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Thu, 26 Jan 2012 20:08:27 +0000 Subject: [PATCH] Data files for Unit Tests git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85785 2327b42d-5241-43d6-9e2a-de5ac946f064 --- .../Calculation/Functions/ERROR_TYPE.data | 14 +++++++++++++ .../Calculation/Functions/IS_BLANK.data | 16 +++++++++++++++ .../Calculation/Functions/IS_ERR.data | 16 +++++++++++++++ .../Calculation/Functions/IS_ERROR.data | 16 +++++++++++++++ .../Calculation/Functions/IS_EVEN.data | 20 +++++++++++++++++++ .../Calculation/Functions/IS_LOGICAL.data | 16 +++++++++++++++ .../Calculation/Functions/IS_NA.data | 16 +++++++++++++++ .../Calculation/Functions/IS_NONTEXT.data | 16 +++++++++++++++ .../Calculation/Functions/IS_NUMBER.data | 16 +++++++++++++++ .../Calculation/Functions/IS_ODD.data | 20 +++++++++++++++++++ .../Calculation/Functions/IS_TEXT.data | 16 +++++++++++++++ .../rawTestData/Calculation/Functions/N.data | 20 +++++++++++++++++++ .../Calculation/Functions/TYPE.data | 16 +++++++++++++++ .../Calculation/Logical/IFERROR.data | 12 +++++++---- 14 files changed, 226 insertions(+), 4 deletions(-) create mode 100644 unitTests/rawTestData/Calculation/Functions/ERROR_TYPE.data create mode 100644 unitTests/rawTestData/Calculation/Functions/IS_BLANK.data create mode 100644 unitTests/rawTestData/Calculation/Functions/IS_ERR.data create mode 100644 unitTests/rawTestData/Calculation/Functions/IS_ERROR.data create mode 100644 unitTests/rawTestData/Calculation/Functions/IS_EVEN.data create mode 100644 unitTests/rawTestData/Calculation/Functions/IS_LOGICAL.data create mode 100644 unitTests/rawTestData/Calculation/Functions/IS_NA.data create mode 100644 unitTests/rawTestData/Calculation/Functions/IS_NONTEXT.data create mode 100644 unitTests/rawTestData/Calculation/Functions/IS_NUMBER.data create mode 100644 unitTests/rawTestData/Calculation/Functions/IS_ODD.data create mode 100644 unitTests/rawTestData/Calculation/Functions/IS_TEXT.data create mode 100644 unitTests/rawTestData/Calculation/Functions/N.data create mode 100644 unitTests/rawTestData/Calculation/Functions/TYPE.data diff --git a/unitTests/rawTestData/Calculation/Functions/ERROR_TYPE.data b/unitTests/rawTestData/Calculation/Functions/ERROR_TYPE.data new file mode 100644 index 00000000..5f7a25da --- /dev/null +++ b/unitTests/rawTestData/Calculation/Functions/ERROR_TYPE.data @@ -0,0 +1,14 @@ + "#N/A" +NULL, "#N/A" +-1, "#N/A" +1.25, "#N/A" +"", "#N/A" +"2.5", "#N/A" +TRUE, "#N/A" +"#NULL!", 1 +"#DIV/0!", 2 +"#VALUE!", 3 +"#REF!", 4 +"#NAME?", 5 +"#NUM!", 6 +"#N/A", 7 diff --git a/unitTests/rawTestData/Calculation/Functions/IS_BLANK.data b/unitTests/rawTestData/Calculation/Functions/IS_BLANK.data new file mode 100644 index 00000000..13368fea --- /dev/null +++ b/unitTests/rawTestData/Calculation/Functions/IS_BLANK.data @@ -0,0 +1,16 @@ + TRUE +NULL, TRUE +-1, FALSE +0, FALSE +9, FALSE +1.5, FALSE +"", FALSE +"-1", FALSE +"2", FALSE +"-1.5", FALSE +"ABC", FALSE +"#VALUE!", FALSE +"#N/A", FALSE +"TRUE", FALSE +TRUE, FALSE +FALSE, FALSE diff --git a/unitTests/rawTestData/Calculation/Functions/IS_ERR.data b/unitTests/rawTestData/Calculation/Functions/IS_ERR.data new file mode 100644 index 00000000..570af432 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Functions/IS_ERR.data @@ -0,0 +1,16 @@ + FALSE +NULL, FALSE +-1, FALSE +0, FALSE +9, FALSE +1.5, FALSE +"", FALSE +"-1", FALSE +"2", FALSE +"-1.5", FALSE +"ABC", FALSE +"#VALUE!", TRUE +"#N/A", FALSE +"TRUE", FALSE +TRUE, FALSE +FALSE, FALSE diff --git a/unitTests/rawTestData/Calculation/Functions/IS_ERROR.data b/unitTests/rawTestData/Calculation/Functions/IS_ERROR.data new file mode 100644 index 00000000..e1453eb6 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Functions/IS_ERROR.data @@ -0,0 +1,16 @@ + FALSE +NULL, FALSE +-1, FALSE +0, FALSE +9, FALSE +1.5, FALSE +"", FALSE +"-1", FALSE +"2", FALSE +"-1.5", FALSE +"ABC", FALSE +"#VALUE!", TRUE +"#N/A", TRUE +"TRUE", FALSE +TRUE, FALSE +FALSE, FALSE diff --git a/unitTests/rawTestData/Calculation/Functions/IS_EVEN.data b/unitTests/rawTestData/Calculation/Functions/IS_EVEN.data new file mode 100644 index 00000000..2c8c708d --- /dev/null +++ b/unitTests/rawTestData/Calculation/Functions/IS_EVEN.data @@ -0,0 +1,20 @@ + "#NAME?" +NULL, "#NAME?" +-1, FALSE +0, TRUE +9, FALSE +1.25, FALSE +1.5, FALSE +2.25, TRUE +2.5, TRUE +"", "#VALUE!" +"-1", FALSE +"2", TRUE +"-1.5", FALSE +"2.5", TRUE +"ABC", "#VALUE!" +"#VALUE!", "#VALUE!" +"#N/A", "#VALUE!" +"TRUE", "#VALUE!" +TRUE, "#VALUE!" +FALSE, "#VALUE!" diff --git a/unitTests/rawTestData/Calculation/Functions/IS_LOGICAL.data b/unitTests/rawTestData/Calculation/Functions/IS_LOGICAL.data new file mode 100644 index 00000000..0587b68a --- /dev/null +++ b/unitTests/rawTestData/Calculation/Functions/IS_LOGICAL.data @@ -0,0 +1,16 @@ + FALSE +NULL, FALSE +-1, FALSE +0, FALSE +9, FALSE +1.5, FALSE +"", FALSE +"-1", FALSE +"2", FALSE +"-1.5", FALSE +"ABC", FALSE +"#VALUE!", FALSE +"#N/A", FALSE +"TRUE", FALSE +TRUE, TRUE +FALSE, TRUE diff --git a/unitTests/rawTestData/Calculation/Functions/IS_NA.data b/unitTests/rawTestData/Calculation/Functions/IS_NA.data new file mode 100644 index 00000000..5af30133 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Functions/IS_NA.data @@ -0,0 +1,16 @@ + FALSE +NULL, FALSE +-1, FALSE +0, FALSE +9, FALSE +1.5, FALSE +"", FALSE +"-1", FALSE +"2", FALSE +"-1.5", FALSE +"ABC", FALSE +"#VALUE!", FALSE +"#N/A", TRUE +"TRUE", FALSE +TRUE, FALSE +FALSE, FALSE diff --git a/unitTests/rawTestData/Calculation/Functions/IS_NONTEXT.data b/unitTests/rawTestData/Calculation/Functions/IS_NONTEXT.data new file mode 100644 index 00000000..3af6f307 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Functions/IS_NONTEXT.data @@ -0,0 +1,16 @@ + TRUE +NULL, TRUE +-1, TRUE +0, TRUE +9, TRUE +1.5, TRUE +"", FALSE +"-1", FALSE +"2", FALSE +"-1.5", FALSE +"ABC", FALSE +"#VALUE!", TRUE +"#N/A", TRUE +"TRUE", FALSE +TRUE, TRUE +FALSE, TRUE diff --git a/unitTests/rawTestData/Calculation/Functions/IS_NUMBER.data b/unitTests/rawTestData/Calculation/Functions/IS_NUMBER.data new file mode 100644 index 00000000..33449f54 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Functions/IS_NUMBER.data @@ -0,0 +1,16 @@ + FALSE +NULL, FALSE +-1, TRUE +0, TRUE +9, TRUE +1.5, TRUE +"", FALSE +"-1", FALSE +"2", FALSE +"-1.5", FALSE +"ABC", FALSE +"#VALUE!", FALSE +"#N/A", FALSE +"TRUE", FALSE +TRUE, FALSE +FALSE, FALSE diff --git a/unitTests/rawTestData/Calculation/Functions/IS_ODD.data b/unitTests/rawTestData/Calculation/Functions/IS_ODD.data new file mode 100644 index 00000000..34962f54 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Functions/IS_ODD.data @@ -0,0 +1,20 @@ + "#NAME?" +NULL, "#NAME?" +-1, TRUE +0, FALSE +9, TRUE +1.25, TRUE +1.5, TRUE +2.25, FALSE +2.5, FALSE +"", "#VALUE!" +"-1", TRUE +"2", FALSE +"-1.5", TRUE +"2.5", FALSE +"ABC", "#VALUE!" +"#VALUE!", "#VALUE!" +"#N/A", "#VALUE!" +"TRUE", "#VALUE!" +TRUE, "#VALUE!" +FALSE, "#VALUE!" diff --git a/unitTests/rawTestData/Calculation/Functions/IS_TEXT.data b/unitTests/rawTestData/Calculation/Functions/IS_TEXT.data new file mode 100644 index 00000000..6c3cb2e1 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Functions/IS_TEXT.data @@ -0,0 +1,16 @@ + FALSE +NULL, FALSE +-1, FALSE +0, FALSE +9, FALSE +1.5, FALSE +"", TRUE +"-1", TRUE +"2", TRUE +"-1.5", TRUE +"ABC", TRUE +"#VALUE!", FALSE +"#N/A", FALSE +"TRUE", TRUE +TRUE, FALSE +FALSE, FALSE diff --git a/unitTests/rawTestData/Calculation/Functions/N.data b/unitTests/rawTestData/Calculation/Functions/N.data new file mode 100644 index 00000000..107fa4fd --- /dev/null +++ b/unitTests/rawTestData/Calculation/Functions/N.data @@ -0,0 +1,20 @@ + 0 +NULL, 0 +-1, -1 +1.25, 1.25 +"", 0 +"2.5", 0 +"TRUE", 0 +"ABCDE", 0 +TRUE, 1 +"#DIV/0!", "#DIV/0!" +"#NUM!", "#NUM!" +{}, 0 +{123}, 123 +{123|456}, 123 +{123|"A"}, 123 +{"A"|123}, 0 +{"A"|123;456|789}, 0 +{123|"A";456|789}, 123 +{123|456;"A"|789}, 123 +{123|456;789|"A"}, 123 diff --git a/unitTests/rawTestData/Calculation/Functions/TYPE.data b/unitTests/rawTestData/Calculation/Functions/TYPE.data new file mode 100644 index 00000000..9ad5a51e --- /dev/null +++ b/unitTests/rawTestData/Calculation/Functions/TYPE.data @@ -0,0 +1,16 @@ + 1 +NULL, 1 +-1, 1 +1.25, 1 +"", 2 +"2.5", 2 +"TRUE", 2 +"ABCDE", 2 +TRUE, 4 +"#DIV/0!", 16 +"#NUM!", 16 +{}, 1 +{1}, 1 +{1;2;3}, 64 +{1|2|3;4|5|6;7|8|9}, 64 +{|;|}, 64 diff --git a/unitTests/rawTestData/Calculation/Logical/IFERROR.data b/unitTests/rawTestData/Calculation/Logical/IFERROR.data index bf2cfc92..69a85839 100644 --- a/unitTests/rawTestData/Calculation/Logical/IFERROR.data +++ b/unitTests/rawTestData/Calculation/Logical/IFERROR.data @@ -1,4 +1,8 @@ -TRUE, "Not an Error", "Not an Error" -"", "Error", "" -"ABC", "Error", "ABC" -"#VALUE!","Error", "Error" +, "Error", NULL +TRUE, "Error", TRUE +42, "Error", 42 +"", "Error", "" +"ABC", "Error", "ABC" +"#VALUE!", "Error", "Error" +"#NAME?", "Error", "Error" +"#N/A", "Error", "Error"