Commit Graph

58 Commits

Author SHA1 Message Date
Mark Baker 9ecfc0c8b4 Merge pull request #10 from PowerKiKi/unit-tests-bessel
Fix unit tests for BESSEL functions
2016-08-13 11:40:19 +01:00
Mark Baker 408c1a9218 Merge pull request #11 from PowerKiKi/unit-tests-imexp
Fix unit tests for IMEXP() function
2016-08-13 11:40:11 +01:00
Mark Baker 98ccf97e55 Merge pull request #12 from PowerKiKi/unit-tests-base-conversion
Fix unit tests for all base conversion functions
2016-08-13 11:40:02 +01:00
Adrien Crivelli af42b80eba
Fix unit tests for ACCRINT() function
The expected value were incorrect according to LibreOffice 5 and
Google Spreadsheet.
2016-08-07 20:54:30 +09:00
Adrien Crivelli 8fc29bd1b1
Fix unit tests for all base conversion functions
This include cases were artificial constraints were not checked
(eg: between -512 and 511 for `DECBIN`) and some bugs were 32
bits platform were assumed.

The following are covered:

`BIN2DEC`, `BIN2HEX`, `BIN2OCT`,
`DEC2BIN`, `DEC2HEX`, `DEC2OCT`,
`HEX2BIN`, `HEX2DEC`, `HEX2OCT`,
`OCT2BIN`, `OCT2DEC`, `OCT2HEX`
2016-08-01 02:48:51 +09:00
Adrien Crivelli 450c6ead99
Fix unit tests for IMEXP() function
The expected value were incorrect according to LibreOffice 5 and
wolframalpha.com.
2016-07-31 23:24:08 +09:00
Adrien Crivelli 3a38cc8f0a
Fix unit tests for BESSEL functions
Expected data were re-written by using LibreOffice 5 as a reference.
We kept only 8 decimals, because this is the precision used in tests,
and it's easier to read without scientific notation.

Also a few expected values were wrong so they were changed. The correct
expected values were confirmed by both LibreOffice 5 and wolframalpha.com.

Finally fixed an actual bug in code were a NaN value were returned instead of
the correct `#NUM!`.
2016-07-31 23:11:54 +09:00
Progi1984 36a9068b38 #401 : PHPUnit Fixes (Calculation > LookupRef) 2016-05-20 08:41:09 +02:00
Progi1984 98f7d4bf08 #401 : PHPUnit Fixes (Calculation > DateTime) 2016-05-19 08:49:09 +02:00
Progi1984 259ce457f3 #401 : PHPCS Fixes & Some PHPUnit Fixes 2016-05-18 13:37:00 +02:00
MarkBaker d7ef6810a4 Improved masking for number format handling, particularly for datetime masks 2015-08-01 00:39:10 +01:00
MarkBaker 0dafaea059 Work on rewriting unit tests for the new folder structure (calling bootstrap) and json input files 2015-05-29 21:35:35 +01:00
MarkBaker 93d16b886f Start changing some unit tests to use a json provider rather than the current excessively complex csv provider 2015-05-28 23:15:46 +01:00
MarkBaker 53584ec9a3 Unit tests for Cell classes, modification to use json-format in raw data provider 2015-05-28 08:29:44 +01:00
MarkBaker 0c177b5ea2 We modified another block of files to psr-2, and their jaws dropped when they saw what happened next 2015-05-20 19:17:17 +01:00
MarkBaker bc7028ae4e Modified XEE security scan to handle UTF-16 charset, and added unit tests for the security scan 2015-04-29 22:23:14 +01:00
MarkBaker d9cda3f287 Unit tests for default value binder 2015-03-27 21:28:26 +00:00
MarkBaker 71dba49fff Improvements to array arithmetic (MMULT)
Better setup of calculation function tests to ensure consistent environment
2015-01-23 23:44:32 +00:00
MarkBaker 976e7f064a Excel TRIM function only trims spaces, not tabs or other spacing characters 2015-01-23 16:49:20 +00:00
MarkBaker fb18b7b598 Fix to complex number format signing when mask has a decimal 2015-01-23 16:09:36 +00:00
MarkBaker d778b41524 Fix to negative number handling with complex number format masks, so that the sign only appears once 2015-01-23 15:40:54 +00:00
MarkBaker 280620a753 Implement Excel VALUE() function, locale-warts and all 2014-08-30 00:12:31 +01:00
Adrien Crivelli f2e24ecdd4 Comparison operators on strings are usually case insensitive
Excel, Gnumeric and Google Spreadsheet are case insensitive, so the
default behavior of PHPExcel is modified accordingly.

However OpenOffice is case sensitive and is also supported via the
compatibility mode of PHPExcel.

Fixes #31
2013-11-21 16:04:59 +09:00
Mark Baker a0859fd7d0 Fix to number format masking for scientific notation 2013-06-16 15:13:05 +01:00
Mark Baker 4d92e77d00 Eliminate need for use of money_format() function; various fixes to HLOOKUP, VLOOKUP and DOLLAR functions + unit tests 2013-06-15 12:15:03 +01:00
Mark Baker dfc74f8b95 Feature: (amerov) - Implementation of the Excel HLOOKUP() function 2013-06-14 23:57:50 +01:00
Mark Baker c17a4a62a3 Improvements to formatting numbers with more complex masks 2013-05-21 18:00:57 +01:00
Mark Baker db75c5981a Fixes to Advanced Value Binder for cell restructuring 2013-02-21 11:29:32 +00:00
Mark Baker d8debd0966 Minor tweaks and bugfixes 2012-11-25 17:56:27 +00:00
Mark Baker 6bc4199675 Various tweaks and fixes 2012-11-24 22:48:44 +00:00
Mark Baker 53a32ce7f7 Providing support for timezone adjustments in date/time conversion methods 2012-11-02 23:07:01 +00:00
Mark Baker b00f6d4c4c AutoFilter unit tests 2012-08-19 23:17:12 +01:00
Mark Baker cdf9dfdcbe Unit tests, plus a couple of minor validation bugfixes 2012-08-03 21:21:32 +01:00
Mark Baker 83c083392a GH18 - Modify extractAllCellReferencesInRange() behaviour for , and space
range separators
2012-07-31 13:00:09 +01:00
Mark Baker 5c32ecee0a Fixes to unit test data 2012-07-29 23:38:41 +01:00
Mark Baker 6a14bdce4c Unit tests for Cell static methods and creation of PHPExcel_Exception
rather than use of standard Exception
2012-07-29 20:56:35 +01:00
Mark Baker 8f3dc270a6 Bugfix: Work Item 18415- mb_stripos empty delimiter 2012-07-27 22:06:28 +01:00
Mark Baker b7dfeb9bb7 Unit Tests for Date helper functions 2012-07-24 13:21:31 +01:00
Mark Baker 59932b0cac Bugfix: Work item 18370 - Error loading xlsx file with column breaks
Deprecated the getCalculatedValue(), setCalculatedValue(), setFormulaAttributes() and getFormulaAttributes() methods in PHPExcel_Cell.
Documentation changes and unit tests.
2012-07-18 12:29:33 +01:00
Mark Baker 1535b4d9e7 Feature: Modified ERF and ERFC Engineering functions to accept Excel 2010's modified acceptance of negative arguments 2012-07-14 14:20:17 +01:00
Mark Baker e6ebb0facf Unit tests for shared classes 2012-06-24 22:33:33 +01:00
Mark Baker ad0e299cf7 Unit tests for Shared components,
and unit test adjustment for TextData locale formatting
2012-06-18 21:35:21 +01:00
Mark Baker 64fe139503 Additional unit tests
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@91576 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-06-10 22:08:42 +00:00
Mark Baker 97a7f80f68 Unit test data
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@89038 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-04-09 21:17:07 +00:00
Mark Baker 954208b56d Unit test data
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@89019 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-04-09 11:26:35 +00:00
Mark Baker e4a859c5e3 Unit tests
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@88997 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-04-08 20:40:50 +00:00
Mark Baker d481003b50 Unit tests
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@88960 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-04-07 20:53:08 +00:00
Mark Baker a2560b45f7 Unit tests
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@88404 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-03-25 22:27:51 +00:00
Mark Baker 30fb3fba20 Unit test data
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@88319 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-03-24 23:11:14 +00:00
Mark Baker cbad0cbb14 Unit test data
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@88244 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-03-23 18:04:58 +00:00