xref: /trunk/odf_docs/openformula-requirements.tsv (revision 1354dfcdad4129e7cc561fdcfbb4f6c8958f0428)
1ReqID   Section Requirement Description Mandatory/Optional  Conformance Group   ODF Version Introduced/Changed  Suggested Test
2OF-REQ-0001 2.1 Evaluator shall belong to exactly one conformance group: Small, Medium, or Large.   Mandatory   Small/Medium/Large  ODF 1.2 Verify document declares group; run group-specific function subset.
3OF-REQ-0002 2.2 Small Group: mandatory functions and operators as defined in Chapter 6 subset.  Mandatory   Small   ODF 1.2 Execute all Small-group mandatory functions; compare to expected results.
4OF-REQ-0003 2.3 Medium Group: includes all Small requirements plus additional functions.    Mandatory   Medium  ODF 1.2 Execute Medium-group mandatory functions.
5OF-REQ-0004 2.4 Large Group: includes all Medium requirements plus remaining functions. Mandatory   Large   ODF 1.2 Execute Large-group mandatory functions.
6OF-REQ-0005 2.5 Optional capabilities shall not be claimed unless implemented and documented.   Optional    All ODF 1.2 Audit claimed optional capabilities against source.
7OF-REQ-0006 3.1 Formula processing: expression shall be parsed according to the OpenFormula grammar.    Mandatory   All ODF 1.2 Parse a corpus of valid/invalid formulas; check accept/reject.
8OF-REQ-0007 3.2 Inline arrays shall be supported using { } with row/column separators.  Mandatory   Medium/Large    ODF 1.2 Evaluate {1,2;3,4} and verify matrix result.
9OF-REQ-0008 3.3 Reference range operator (:) shall produce a cell range.    Mandatory   All ODF 1.2 Evaluate SUM(A1:A3) and verify range semantics.
10OF-REQ-0009 3.4 Reference intersection operator (!) shall produce the intersection of two references.   Mandatory   All ODF 1.2 Evaluate A1:C3!B1:D2 and verify intersection.
11OF-REQ-0010 3.5 Reference union operator (~) shall produce the union of two references. Mandatory   All ODF 1.2 Evaluate A1:B2~C3:D4 and verify union.
12OF-REQ-0011 3.6 Automatic intersection (whitespace between references) shall be supported.  Mandatory   All ODF 1.2 Evaluate SUM(A1:C3 B1:D2) and verify implicit intersection.
13OF-REQ-0012 3.7 Named expressions shall be resolvable in formulas.  Mandatory   All ODF 1.2 Define a named range and reference it in a formula.
14OF-REQ-0013 3.8 External named expressions shall be supported.  Optional    All ODF 1.2 Reference a named expression from another document.
15OF-REQ-0014 3.9 Quoted labels shall be supported as implicit intersections. Optional    All ODF 1.2 Use a column header label in a formula.
16OF-REQ-0015 4.1 Types: Number, Text, Logical, DateParam, TimeParam, DateTimeParam, Reference, Error, Array. Mandatory   All ODF 1.2 Type-check function results and operands.
17OF-REQ-0016 4.2 Conversion to Scalar shall be defined for each type.    Mandatory   All ODF 1.2 Convert array/single-cell reference to scalar; check result.
18OF-REQ-0017 4.3 Conversion to Number shall handle Text, Logical, Date, Time.    Mandatory   All ODF 1.2 Convert "12.5", TRUE, date serial to number.
19OF-REQ-0018 4.4 Conversion to Integer shall truncate toward zero.   Mandatory   All ODF 1.2 Convert 2.7, -2.7 to integer; verify truncation.
20OF-REQ-0019 4.5 Conversion to Logical shall treat 0 as False, non-zero as True. Mandatory   All ODF 1.2 Convert 0, 1, -3, "" to logical.
21OF-REQ-0020 4.6 Conversion to Text shall format numbers per locale/format.  Mandatory   All ODF 1.2 Convert number to text; check formatting.
22OF-REQ-0021 5.1 Expression syntax: identifiers, operators, separators per grammar.  Mandatory   All ODF 1.2 Parse identifiers and operators; check tokenization.
23OF-REQ-0022 5.2 Whitespace handling shall be per specification (insignificant except in strings/labels).    Mandatory   All ODF 1.2 Insert spaces in formula; verify identical result.
24OF-REQ-0023 5.3 String escaping: quotes doubled inside text strings.    Mandatory   All ODF 1.2 Parse "He said ""hi"""; verify string value.
25OF-REQ-0024 5.4 Inline arrays use { } with ; row sep and , col sep (or locale variants).    Mandatory   Medium/Large    ODF 1.2 Parse {1|2;3|4}; verify matrix.
26OF-REQ-0025 5.5 Error constants #NULL!, #DIV/0!, #VALUE!, #REF!, #NAME?, #NUM!, #N/A.   Mandatory   All ODF 1.2 Evaluate formulas producing each error constant.
27OF-REQ-0026 5.6 Formula length and nesting limits are implementation-defined but shall be documented.   Implementation-defined  All ODF 1.2 Test deeply nested formula; document limit.
28OF-REQ-0027 6.1 Operators: + - * / ^ & = <> < > <= <= >= % ! : ~ shall be supported.    Mandatory   All ODF 1.2 Evaluate each operator; verify precedence and result.
29OF-REQ-0028 6.2 Operator precedence and associativity shall match OpenFormula.  Mandatory   All ODF 1.2 Evaluate 2+3*4 and 2^3^2; verify order.
30OF-REQ-0029 6.3 Prefix operators + and - shall be supported.    Mandatory   All ODF 1.2 Evaluate -5 and +3; verify sign.
31OF-REQ-0030 6.4 The % postfix operator shall divide by 100. Mandatory   All ODF 1.2 Evaluate 50% and verify = 0.5.
32OF-REQ-0031 6.5 Function call syntax: name followed by ( argument-list ).   Mandatory   All ODF 1.2 Call functions with 0, 1, N arguments.
33OF-REQ-0032 6.6 Function parameter classification (Reference, Number, Text, Logical, etc.) per function.    Mandatory   All ODF 1.2 Pass each type to each function; verify accept/error.
34OF-REQ-0033 6.10.1  DATE shall return serial for year/month/day; years before 1583 implementation-defined.  Mandatory   Medium/Large    ODF 1.4 DATE(2020,1,1); verify serial; DATE(1500,1,1) per impl-defined.
35OF-REQ-0034 6.10.8  EASTERSUNDAY shall return date of Easter Sunday for year; 1583<=year<=9956. Mandatory   Medium/Large    ODF 1.4 EASTERSUNDAY(2025); verify date; EASTERSUNDAY() uses today.
36OF-REQ-0035 6.10.x  CONVERT shall convert between units per the ODF 1.4 unit table. Mandatory   Medium/Large    ODF 1.4 CONVERT(101325,"Pa","atm"); verify against ODF 1.4 table.
37OF-REQ-0036 6.11.x  COUNTA shall count non-empty cells including text and errors.   Mandatory   Small   ODF 1.4 COUNTA over mixed types; verify count.
38OF-REQ-0037 6.12.x  INDEX shall handle row/column/area per ODF 1.4 (removed row-vector shortcut).   Mandatory   Medium/Large    ODF 1.4 INDEX(rowvector,row); verify ODF 1.4 error behavior.
39OF-REQ-0038 6.13.x  ISBLANK/ISFORMULA/ISLOGICAL/ISNONTEXT/ISNUMBER/ISREF/ISTEXT type tests. Mandatory   Small   ODF 1.4 Pass each type to each IS* function; verify logical result.
40OF-REQ-0039 6.18.x  NPER/PMT financial functions per ODF 1.4 definitions.   Mandatory   Medium/Large    ODF 1.4 NPER/PMT with known inputs; verify against ODF 1.4.
41OF-REQ-0040 6.19.x  Year 1583 handling: DateParam/TimeParam validity, proleptic Gregorian option.   Mandatory   All ODF 1.4 Dates around 1582-10-15; verify boundary behavior.
42OF-REQ-0041 6.x IFNA(value,value_if_na) shall return value_if_na when value is #N/A.    Mandatory   Medium/Large    ODF 1.3 IFNA(#N/A,x)=x; IFNA(5,x)=5.
43OF-REQ-0042 6.x SKEWP shall return population skewness. Mandatory   Medium/Large    ODF 1.3 SKEWP over data set; verify population skewness.
44OF-REQ-0043 6.x BITAND/BITOR/BITXOR/BITLSHIFT/BITRSHIFT bitwise operations. Mandatory   Medium/Large    ODF 1.2 BITAND(6,3)=2; BITOR(6,3)=7; BITXOR(6,3)=5; shifts.
45OF-REQ-0044 7.1 Other capabilities: references to other sheets, databases.  Optional    All ODF 1.2 Cross-sheet reference; verify resolution.
46OF-REQ-0045 7.4 Dates before year 1583: proleptic Gregorian use is implementation-defined.  Implementation-defined  All ODF 1.4 DATE(1500,1,1); document chosen calendar.
47OF-REQ-0046 8.1 Non-portable features (e.g. REGEX, wildcards) shall be marked/documented.   Optional    All ODF 1.2 Use non-portable feature; document behavior.
48OF-REQ-0047 A   Appendix A: changes from ODF 1.2/1.3 to 1.4 shall be reflected. Mandatory   All ODF 1.4 Diff test inventory against ODF 1.2 baseline.
49