Commit Graph

38 Commits

Author SHA1 Message Date
wp_xxyyzz
cfe6c14a8f fpspreadsheet: Clip cell ranges at the sheet dimension limits. Add some test cases for it.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9651 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-26 23:27:47 +00:00
wp_xxyyzz
5095b475b2 FPSpreadsheet: Restructure unit tests in calcformulatests.pas
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9648 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-25 16:40:57 +00:00
wp_xxyyzz
97e1d1e881 FPSpreadsheet: Add unit tests for ASIN, ATAN and SQRT formulas.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9647 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-25 12:51:37 +00:00
wp_xxyyzz
960402692f FPSpreadsheet: Fix misc bugs in INDEX and INDIRECT formulas.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9646 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-25 10:49:55 +00:00
wp_xxyyzz
cadf2d517a FPSpreadsheet: Add unit tests for MATCH formula searching in 2nd sheet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9645 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-24 12:14:14 +00:00
wp_xxyyzz
7c75ca5398 FPSpreadsheet: Fix INDIRECT for cell range references. Add unit tests for the INDIRECT formula.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9644 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-24 11:48:51 +00:00
wp_xxyyzz
b3fca34799 FPSpreadsheet: Fix formula MATCH support of wildcards in strings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9642 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-19 18:47:36 +00:00
wp_xxyyzz
69fb5b2ea2 FPSpreadsheet: Fix compilation (issue #39106). Add unit test for ADDRESS formula.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9641 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-18 09:17:14 +00:00
wp_xxyyzz
81f20ccfdb FPSpreadsheet: Add unit tests for ACOS, ODD, POWER, RADIANS
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9640 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-17 10:58:14 +00:00
wp_xxyyzz
350efafd15 FPSpreadsheet: Handle missing argument in ROW and COLUMN formulas. Add unit tests for ROW, COLUMN, LOG, LOG10, and fix others regarding error cases.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9639 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-17 08:50:06 +00:00
wp_xxyyzz
ddef318478 FPSpreadsheet: Fix COUNTIF, SUMIF and AVERAGEIF formulas when they contain error values in the arguments.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9624 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-11 18:18:47 +00:00
wp_xxyyzz
8959750876 FPSpreadsheet: Fix MATCH finding wrong duplicate value. See https://forum.lazarus.freepascal.org/index.php/topic,70130.0.html. Update unit test.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9621 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-08 11:02:16 +00:00
wp_xxyyzz
016a7136bb FPSpreadsheet: Fix error in IF formula when second argument contains an error and is selected. See https://forum.lazarus.freepascal.org/index.php/topic,70117.msg546252. Update unit test.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9620 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-06 21:26:55 +00:00
wp_xxyyzz
017c0eab2b FPSpreadsheet: Add more unit tests for CONCATENATE, EXACT, LEN, LOWER and UPPER
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9615 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-03 18:10:10 +00:00
wp_xxyyzz
5c33ac9769 FPSpreadsheet: Add more unit tests for formula AVERAGEIF .
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9606 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-01-27 23:05:14 +00:00
wp_xxyyzz
e66040bd5c FPSpreadsheet: Add more unit test cases for COUNTIF and SUMIF.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9605 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-01-26 23:31:57 +00:00
wp_xxyyzz
d80948d93a FpSpreadsheet: More formula calculation unit tests. Fix some formulas for special arguments.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9603 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-01-25 18:32:21 +00:00
wp_xxyyzz
0efab0339c FPSpreadsheet: Add more unit tests for formula calculation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9602 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-01-24 00:12:37 +00:00
wp_xxyyzz
c5b8b6077c FPSpreadsheet: Fix error propagation in ISERROR formula. Fix Excel pecularities in DATE and TIME formulas. Add formula calculation unit tests.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9597 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-01-23 00:04:07 +00:00
wp_xxyyzz
e5e12455ea FPSpreadsheet: Redo error propagation in formula engine (https://forum.lazarus.freepascal.org/index.php/topic,69893.msg544003.html#msg544003, https://forum.lazarus.freepascal.org/index.php/topic,69900.0.html). Incomplete, formula IsError is broken.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9596 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-01-22 12:02:41 +00:00
wp_xxyyzz
2504540a41 fpspreadsheet: Add unit tests for defined names.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9412 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-08-01 13:11:19 +00:00
wp_xxyyzz
d36dbd8f13 fpspreadsheet: Fix NumformatParserTests failing in Windows 64bit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9393 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-17 15:37:45 +00:00
wp_xxyyzz
69edc1b1d2 fpspreadsheet: Add unit tests for COUNTIFS and AVERAGEIFS.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9392 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-17 15:36:49 +00:00
wp_xxyyzz
f496fe9a62 fpspreadsheet: Add unit test for formula SUMIFS
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9390 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-17 14:34:51 +00:00
wp_xxyyzz
2cbb2fcb4c fpspreadsheet: Add unit tests for copying cell ranges with formulas (https://forum.lazarus.freepascal.org/index.php/topic,67763.msg522550), by veb86.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9380 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-05 16:22:42 +00:00
wp_xxyyzz
8ff431d05e fpspreadsheet: Refactor internal DoIF procedure for calculation of COUNTIF, SUMIF, AVERAGEIF. Prepared from COUNTIFS, SUMIFS, AVERAGEIFS, but not yet working correctly. Add unit test cases for COUNTIF and SUMIF.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9363 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-06-03 21:31:47 +00:00
wp_xxyyzz
af4a35901d fpspreadsheet: Extend INDEX formula to return columns and rows. Add unit test for it.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9361 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-31 13:08:37 +00:00
wp_xxyyzz
a14eab917f fpspreadsheet: Simpler code for the INDIRECT formula (patch by veb86). Add unit test case with string operation in INDIRECT argument.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9360 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-30 18:48:27 +00:00
wp_xxyyzz
24b576ad1b fpspreadsheet: Add unit test cases for ROUNDDOWN, ROUNDUP, INDEX and INDIRECT
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9359 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-30 15:49:32 +00:00
wp_xxyyzz
09ab7329ef fpspreadsheet: Support also haDistributed and haFilled horizontal alignments. haJustify renamed to haJustified.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9348 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-10 10:24:45 +00:00
wp_xxyyzz
611cd2c347 fpspreadsheet: Add haJustify as new horizontal alignment option.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9347 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-09 17:08:43 +00:00
wp_xxyyzz
870e46847a fpspreadsheet: MoveCell completely overwrites destination cell. MoveCell with sourcecell=nil erases destination cell. Related unit test cases.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8270 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-28 10:08:39 +00:00
wp_xxyyzz
16d631d0cf fpspreadsheet: Fix missing error when cells are moved so that a circular reference formula is created (https://forum.lazarus.freepascal.org/index.php/topic,59137.msg441301.html#msg441301).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8269 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-27 21:28:44 +00:00
wp_xxyyzz
e97d4c3c20 fpspreadsheet: Add unit test for moving cells. NOTE: currently there is a fail when moving a cell with relative formula.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8262 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-22 21:44:01 +00:00
wp_xxyyzz
b4ac1e075d fpspreadsheet: Fix issue that Insert/DeleteRow/Col operation changes formulas in unaffected sheets (see https://forum.lazarus.freepascal.org/index.php/topic,59102.0.html). Add test cases for it.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8259 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-21 16:45:44 +00:00
wp_xxyyzz
1626e8ab2f fpspreadsheet: Less hints and warnings
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8126 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-10-27 16:14:40 +00:00
wp_xxyyzz
0fce0c2ddf fpspreadsheet: Add TDataset-descendant, TsWorksheetDataset, and related unit-tests.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8095 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-24 09:05:05 +00:00
wp_xxyyzz
4585269bdb Move unit tests into folder unit-tests/common
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8094 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-24 08:45:28 +00:00