PhpSpreadsheet/tests/PhpSpreadsheetTests/Calculation/Functions
oleibman 3db0b2a2de
Corrections for HLOOKUP Function (#2330)
See issue #2123. HLOOKUP needs to do some conversions between column numbers and letters which it had not been doing.

HLOOKUP tests were performed using direct calls to the function in question rather than in the context of a spreadsheet. This contributed to keeping this error obscured even though there were, in theory, sufficient test cases. The tests are changed to perform in spreadsheet context. For the most part, the test cases are unchanged. One of the expected results was wrong; it has been changed, and a new case added to cover the case it was supposed to be testing.

After getting the HLOOKUP tests in order, it turned out that a test using literal arrays which had been succeeding now failed. The array constructed by the literals are considerably different than those constructed using spreadsheet cells; additional code was added to handle this situation.
2021-10-23 17:59:42 -07:00
..
Database Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
DateTime Cache Results for Tests Involving NOW and TODAY Functions (#2311) 2021-10-03 11:06:47 -07:00
Engineering Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
Financial Additional unit tests for negative interest rates in the financial functions, and also tests using negative present/future value arguments (#2166) 2021-06-16 14:16:48 +02:00
Logical Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
LookupRef Corrections for HLOOKUP Function (#2330) 2021-10-23 17:59:42 -07:00
MathTrig 2 Tests vs. Scrutinizer/Phpstan 2021-07-01 11:15:02 +02:00
Statistical Fix for Issue 2158 (AverageIf Calculation Problem) (#2160) 2021-06-15 09:54:57 +02:00
TextData TextData - Minor Changes, Test Coverage (#2151) 2021-06-15 08:37:17 +02:00
Web Initial implementation of the URLENCODE() web function (#2031) 2021-04-28 17:10:36 +02:00