test(core): refresh numeric fixtures — deviation text + epsilon update
public
test(core): refresh numeric fixtures — deviation text + epsilon update Re-ingested 8 numeric suites (0058, 0061, 0063, 0094, 0105, 1100, 1101, 1102) against the current ingester. Case counts and expected values are unchanged; only the deviation description and the per-case epsilon were updated (1e-09 → 1e-08, matching the ingester's current default tolerance). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| Changeset | 77338493ada4856b4fabe10c8ee268b6f893f97e |
|---|---|
| Author (claimed) | Timo Stolz <timo.stolz@gmail.com>, |
| Parents | c3bd5121d758 |
| Children | |
| Pushlog | by timo via ssh |
modified crates/feel-core/tests/fixtures/0058-feel-number-function.json +14 −14
| @@ -5,8 +5,8 @@ | ||
| 5 | 5 | "expected": 1000000.01, |
| 6 | 6 | "expected_type": "number", |
| 7 | 7 | "comparison": "f64_epsilon", |
| 8 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 9 | - "epsilon": 1e-09 | |
| 8 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 9 | + "epsilon": 1e-08 | |
| 10 | 10 | }, |
| 11 | 11 | { |
| 12 | 12 | "id": "0058-feel-number-function:002:decision002", |
| @@ -14,8 +14,8 @@ | ||
| 14 | 14 | "expected": 1000000.01, |
| 15 | 15 | "expected_type": "number", |
| 16 | 16 | "comparison": "f64_epsilon", |
| 17 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 18 | - "epsilon": 1e-09 | |
| 17 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 18 | + "epsilon": 1e-08 | |
| 19 | 19 | }, |
| 20 | 20 | { |
| 21 | 21 | "id": "0058-feel-number-function:003:decision003", |
| @@ -23,8 +23,8 @@ | ||
| 23 | 23 | "expected": 1000000.01, |
| 24 | 24 | "expected_type": "number", |
| 25 | 25 | "comparison": "f64_epsilon", |
| 26 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 27 | - "epsilon": 1e-09 | |
| 26 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 27 | + "epsilon": 1e-08 | |
| 28 | 28 | }, |
| 29 | 29 | { |
| 30 | 30 | "id": "0058-feel-number-function:003_a:decision003_a", |
| @@ -72,8 +72,8 @@ | ||
| 72 | 72 | "expected": 1000000.01, |
| 73 | 73 | "expected_type": "number", |
| 74 | 74 | "comparison": "f64_epsilon", |
| 75 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 76 | - "epsilon": 1e-09 | |
| 75 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 76 | + "epsilon": 1e-08 | |
| 77 | 77 | }, |
| 78 | 78 | { |
| 79 | 79 | "id": "0058-feel-number-function:006:decision006", |
| @@ -81,8 +81,8 @@ | ||
| 81 | 81 | "expected": 1000000.01, |
| 82 | 82 | "expected_type": "number", |
| 83 | 83 | "comparison": "f64_epsilon", |
| 84 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 85 | - "epsilon": 1e-09 | |
| 84 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 85 | + "epsilon": 1e-08 | |
| 86 | 86 | }, |
| 87 | 87 | { |
| 88 | 88 | "id": "0058-feel-number-function:007:decision007", |
| @@ -90,8 +90,8 @@ | ||
| 90 | 90 | "expected": 1000000.0, |
| 91 | 91 | "expected_type": "number", |
| 92 | 92 | "comparison": "f64_epsilon", |
| 93 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 94 | - "epsilon": 1e-09 | |
| 93 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 94 | + "epsilon": 1e-08 | |
| 95 | 95 | }, |
| 96 | 96 | { |
| 97 | 97 | "id": "0058-feel-number-function:008:decision008", |
| @@ -99,8 +99,8 @@ | ||
| 99 | 99 | "expected": 1000000.0, |
| 100 | 100 | "expected_type": "number", |
| 101 | 101 | "comparison": "f64_epsilon", |
| 102 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 103 | - "epsilon": 1e-09 | |
| 102 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 103 | + "epsilon": 1e-08 | |
| 104 | 104 | }, |
| 105 | 105 | { |
| 106 | 106 | "id": "0058-feel-number-function:009:decision009", |
modified crates/feel-core/tests/fixtures/0061-feel-median-function.json +12 −12
| @@ -5,8 +5,8 @@ | ||
| 5 | 5 | "expected": 4.0, |
| 6 | 6 | "expected_type": "number", |
| 7 | 7 | "comparison": "f64_epsilon", |
| 8 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 9 | - "epsilon": 1e-09 | |
| 8 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 9 | + "epsilon": 1e-08 | |
| 10 | 10 | }, |
| 11 | 11 | { |
| 12 | 12 | "id": "0061-feel-median-function:002:decision002", |
| @@ -14,8 +14,8 @@ | ||
| 14 | 14 | "expected": 6.0, |
| 15 | 15 | "expected_type": "number", |
| 16 | 16 | "comparison": "f64_epsilon", |
| 17 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 18 | - "epsilon": 1e-09 | |
| 17 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 18 | + "epsilon": 1e-08 | |
| 19 | 19 | }, |
| 20 | 20 | { |
| 21 | 21 | "id": "0061-feel-median-function:003:decision003", |
| @@ -55,8 +55,8 @@ | ||
| 55 | 55 | "expected": 2.5, |
| 56 | 56 | "expected_type": "number", |
| 57 | 57 | "comparison": "f64_epsilon", |
| 58 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 59 | - "epsilon": 1e-09 | |
| 58 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 59 | + "epsilon": 1e-08 | |
| 60 | 60 | }, |
| 61 | 61 | { |
| 62 | 62 | "id": "0061-feel-median-function:007:decision007", |
| @@ -72,8 +72,8 @@ | ||
| 72 | 72 | "expected": 4.0, |
| 73 | 73 | "expected_type": "number", |
| 74 | 74 | "comparison": "f64_epsilon", |
| 75 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 76 | - "epsilon": 1e-09 | |
| 75 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 76 | + "epsilon": 1e-08 | |
| 77 | 77 | }, |
| 78 | 78 | { |
| 79 | 79 | "id": "0061-feel-median-function:009:decision009", |
| @@ -81,8 +81,8 @@ | ||
| 81 | 81 | "expected": 4.0, |
| 82 | 82 | "expected_type": "number", |
| 83 | 83 | "comparison": "f64_epsilon", |
| 84 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 85 | - "epsilon": 1e-09 | |
| 84 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 85 | + "epsilon": 1e-08 | |
| 86 | 86 | }, |
| 87 | 87 | { |
| 88 | 88 | "id": "0061-feel-median-function:010:decision010", |
| @@ -90,7 +90,7 @@ | ||
| 90 | 90 | "expected": 6.0, |
| 91 | 91 | "expected_type": "number", |
| 92 | 92 | "comparison": "f64_epsilon", |
| 93 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 94 | - "epsilon": 1e-09 | |
| 93 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 94 | + "epsilon": 1e-08 | |
| 95 | 95 | } |
| 96 | 96 | ] |
modified crates/feel-core/tests/fixtures/0063-feel-stddev-function.json +4 −4
| @@ -5,8 +5,8 @@ | ||
| 5 | 5 | "expected": 2.0816659994661, |
| 6 | 6 | "expected_type": "number", |
| 7 | 7 | "comparison": "f64_epsilon", |
| 8 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 9 | - "epsilon": 1e-09 | |
| 8 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 9 | + "epsilon": 1e-08 | |
| 10 | 10 | }, |
| 11 | 11 | { |
| 12 | 12 | "id": "0063-feel-stddev-function:003:decision003", |
| @@ -70,7 +70,7 @@ | ||
| 70 | 70 | "expected": 2.0816659994661, |
| 71 | 71 | "expected_type": "number", |
| 72 | 72 | "comparison": "f64_epsilon", |
| 73 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 74 | - "epsilon": 1e-09 | |
| 73 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 74 | + "epsilon": 1e-08 | |
| 75 | 75 | } |
| 76 | 76 | ] |
modified crates/feel-core/tests/fixtures/0094-feel-product-function.json +10 −10
| @@ -5,8 +5,8 @@ | ||
| 5 | 5 | "expected": 5832.0, |
| 6 | 6 | "expected_type": "number", |
| 7 | 7 | "comparison": "f64_epsilon", |
| 8 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 9 | - "epsilon": 1e-09 | |
| 8 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 9 | + "epsilon": 1e-08 | |
| 10 | 10 | }, |
| 11 | 11 | { |
| 12 | 12 | "id": "0094-feel-product-function:002:decision002", |
| @@ -54,8 +54,8 @@ | ||
| 54 | 54 | "expected": 18.75, |
| 55 | 55 | "expected_type": "number", |
| 56 | 56 | "comparison": "f64_epsilon", |
| 57 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 58 | - "epsilon": 1e-09 | |
| 57 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 58 | + "epsilon": 1e-08 | |
| 59 | 59 | }, |
| 60 | 60 | { |
| 61 | 61 | "id": "0094-feel-product-function:007:decision007", |
| @@ -63,8 +63,8 @@ | ||
| 63 | 63 | "expected": 24.0, |
| 64 | 64 | "expected_type": "number", |
| 65 | 65 | "comparison": "f64_epsilon", |
| 66 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 67 | - "epsilon": 1e-09 | |
| 66 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 67 | + "epsilon": 1e-08 | |
| 68 | 68 | }, |
| 69 | 69 | { |
| 70 | 70 | "id": "0094-feel-product-function:008:decision008", |
| @@ -72,8 +72,8 @@ | ||
| 72 | 72 | "expected": 6.0, |
| 73 | 73 | "expected_type": "number", |
| 74 | 74 | "comparison": "f64_epsilon", |
| 75 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 76 | - "epsilon": 1e-09 | |
| 75 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 76 | + "epsilon": 1e-08 | |
| 77 | 77 | }, |
| 78 | 78 | { |
| 79 | 79 | "id": "0094-feel-product-function:008_a:decision008_a", |
| @@ -81,7 +81,7 @@ | ||
| 81 | 81 | "expected": 6.0, |
| 82 | 82 | "expected_type": "number", |
| 83 | 83 | "comparison": "f64_epsilon", |
| 84 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 85 | - "epsilon": 1e-09 | |
| 84 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 85 | + "epsilon": 1e-08 | |
| 86 | 86 | } |
| 87 | 87 | ] |
modified crates/feel-core/tests/fixtures/0105-feel-math.json +48 −48
| @@ -5,8 +5,8 @@ | ||
| 5 | 5 | "expected": 15.0, |
| 6 | 6 | "expected_type": "number", |
| 7 | 7 | "comparison": "f64_epsilon", |
| 8 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 9 | - "epsilon": 1e-09 | |
| 8 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 9 | + "epsilon": 1e-08 | |
| 10 | 10 | }, |
| 11 | 11 | { |
| 12 | 12 | "id": "0105-feel-math:002:Decision2", |
| @@ -14,8 +14,8 @@ | ||
| 14 | 14 | "expected": -15.0, |
| 15 | 15 | "expected_type": "number", |
| 16 | 16 | "comparison": "f64_epsilon", |
| 17 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 18 | - "epsilon": 1e-09 | |
| 17 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 18 | + "epsilon": 1e-08 | |
| 19 | 19 | }, |
| 20 | 20 | { |
| 21 | 21 | "id": "0105-feel-math:003:Decision3", |
| @@ -23,8 +23,8 @@ | ||
| 23 | 23 | "expected": -15.0, |
| 24 | 24 | "expected_type": "number", |
| 25 | 25 | "comparison": "f64_epsilon", |
| 26 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 27 | - "epsilon": 1e-09 | |
| 26 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 27 | + "epsilon": 1e-08 | |
| 28 | 28 | }, |
| 29 | 29 | { |
| 30 | 30 | "id": "0105-feel-math:004:Decision4", |
| @@ -32,8 +32,8 @@ | ||
| 32 | 32 | "expected": 5.0, |
| 33 | 33 | "expected_type": "number", |
| 34 | 34 | "comparison": "f64_epsilon", |
| 35 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 36 | - "epsilon": 1e-09 | |
| 35 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 36 | + "epsilon": 1e-08 | |
| 37 | 37 | }, |
| 38 | 38 | { |
| 39 | 39 | "id": "0105-feel-math:005:Decision5", |
| @@ -41,8 +41,8 @@ | ||
| 41 | 41 | "expected": -5.0, |
| 42 | 42 | "expected_type": "number", |
| 43 | 43 | "comparison": "f64_epsilon", |
| 44 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 45 | - "epsilon": 1e-09 | |
| 44 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 45 | + "epsilon": 1e-08 | |
| 46 | 46 | }, |
| 47 | 47 | { |
| 48 | 48 | "id": "0105-feel-math:006:Decision6", |
| @@ -50,8 +50,8 @@ | ||
| 50 | 50 | "expected": -5.0, |
| 51 | 51 | "expected_type": "number", |
| 52 | 52 | "comparison": "f64_epsilon", |
| 53 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 54 | - "epsilon": 1e-09 | |
| 53 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 54 | + "epsilon": 1e-08 | |
| 55 | 55 | }, |
| 56 | 56 | { |
| 57 | 57 | "id": "0105-feel-math:007:Decision7", |
| @@ -59,8 +59,8 @@ | ||
| 59 | 59 | "expected": 32.0, |
| 60 | 60 | "expected_type": "number", |
| 61 | 61 | "comparison": "f64_epsilon", |
| 62 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 63 | - "epsilon": 1e-09 | |
| 62 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 63 | + "epsilon": 1e-08 | |
| 64 | 64 | }, |
| 65 | 65 | { |
| 66 | 66 | "id": "0105-feel-math:008:Decision8", |
| @@ -68,8 +68,8 @@ | ||
| 68 | 68 | "expected": 50.0, |
| 69 | 69 | "expected_type": "number", |
| 70 | 70 | "comparison": "f64_epsilon", |
| 71 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 72 | - "epsilon": 1e-09 | |
| 71 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 72 | + "epsilon": 1e-08 | |
| 73 | 73 | }, |
| 74 | 74 | { |
| 75 | 75 | "id": "0105-feel-math:009:Decision9", |
| @@ -77,8 +77,8 @@ | ||
| 77 | 77 | "expected": 50.0, |
| 78 | 78 | "expected_type": "number", |
| 79 | 79 | "comparison": "f64_epsilon", |
| 80 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 81 | - "epsilon": 1e-09 | |
| 80 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 81 | + "epsilon": 1e-08 | |
| 82 | 82 | }, |
| 83 | 83 | { |
| 84 | 84 | "id": "0105-feel-math:010:Decision10", |
| @@ -86,8 +86,8 @@ | ||
| 86 | 86 | "expected": 50.0, |
| 87 | 87 | "expected_type": "number", |
| 88 | 88 | "comparison": "f64_epsilon", |
| 89 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 90 | - "epsilon": 1e-09 | |
| 89 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 90 | + "epsilon": 1e-08 | |
| 91 | 91 | }, |
| 92 | 92 | { |
| 93 | 93 | "id": "0105-feel-math:011:Decision11", |
| @@ -95,8 +95,8 @@ | ||
| 95 | 95 | "expected": -225.0, |
| 96 | 96 | "expected_type": "number", |
| 97 | 97 | "comparison": "f64_epsilon", |
| 98 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 99 | - "epsilon": 1e-09 | |
| 98 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 99 | + "epsilon": 1e-08 | |
| 100 | 100 | }, |
| 101 | 101 | { |
| 102 | 102 | "id": "0105-feel-math:012:Decision12", |
| @@ -104,8 +104,8 @@ | ||
| 104 | 104 | "expected": 2.0, |
| 105 | 105 | "expected_type": "number", |
| 106 | 106 | "comparison": "f64_epsilon", |
| 107 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 108 | - "epsilon": 1e-09 | |
| 107 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 108 | + "epsilon": 1e-08 | |
| 109 | 109 | }, |
| 110 | 110 | { |
| 111 | 111 | "id": "0105-feel-math:013:Decision13", |
| @@ -113,8 +113,8 @@ | ||
| 113 | 113 | "expected": 2.0, |
| 114 | 114 | "expected_type": "number", |
| 115 | 115 | "comparison": "f64_epsilon", |
| 116 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 117 | - "epsilon": 1e-09 | |
| 116 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 117 | + "epsilon": 1e-08 | |
| 118 | 118 | }, |
| 119 | 119 | { |
| 120 | 120 | "id": "0105-feel-math:014:Decision14", |
| @@ -122,8 +122,8 @@ | ||
| 122 | 122 | "expected": 2.0, |
| 123 | 123 | "expected_type": "number", |
| 124 | 124 | "comparison": "f64_epsilon", |
| 125 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 126 | - "epsilon": 1e-09 | |
| 125 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 126 | + "epsilon": 1e-08 | |
| 127 | 127 | }, |
| 128 | 128 | { |
| 129 | 129 | "id": "0105-feel-math:015:Decision15", |
| @@ -131,8 +131,8 @@ | ||
| 131 | 131 | "expected": -2.0, |
| 132 | 132 | "expected_type": "number", |
| 133 | 133 | "comparison": "f64_epsilon", |
| 134 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 135 | - "epsilon": 1e-09 | |
| 134 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 135 | + "epsilon": 1e-08 | |
| 136 | 136 | }, |
| 137 | 137 | { |
| 138 | 138 | "id": "0105-feel-math:016:Decision16", |
| @@ -148,8 +148,8 @@ | ||
| 148 | 148 | "expected": 100000.0, |
| 149 | 149 | "expected_type": "number", |
| 150 | 150 | "comparison": "f64_epsilon", |
| 151 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 152 | - "epsilon": 1e-09 | |
| 151 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 152 | + "epsilon": 1e-08 | |
| 153 | 153 | }, |
| 154 | 154 | { |
| 155 | 155 | "id": "0105-feel-math:018:Decision18", |
| @@ -157,8 +157,8 @@ | ||
| 157 | 157 | "expected": 1e-05, |
| 158 | 158 | "expected_type": "number", |
| 159 | 159 | "comparison": "f64_epsilon", |
| 160 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 161 | - "epsilon": 1e-09 | |
| 160 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 161 | + "epsilon": 1e-08 | |
| 162 | 162 | }, |
| 163 | 163 | { |
| 164 | 164 | "id": "0105-feel-math:019:Decision19", |
| @@ -166,8 +166,8 @@ | ||
| 166 | 166 | "expected": 16807.0, |
| 167 | 167 | "expected_type": "number", |
| 168 | 168 | "comparison": "f64_epsilon", |
| 169 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 170 | - "epsilon": 1e-09 | |
| 169 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 170 | + "epsilon": 1e-08 | |
| 171 | 171 | }, |
| 172 | 172 | { |
| 173 | 173 | "id": "0105-feel-math:020:Decision20", |
| @@ -175,8 +175,8 @@ | ||
| 175 | 175 | "expected": 37.0, |
| 176 | 176 | "expected_type": "number", |
| 177 | 177 | "comparison": "f64_epsilon", |
| 178 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 179 | - "epsilon": 1e-09 | |
| 178 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 179 | + "epsilon": 1e-08 | |
| 180 | 180 | }, |
| 181 | 181 | { |
| 182 | 182 | "id": "0105-feel-math:021:Decision21", |
| @@ -184,8 +184,8 @@ | ||
| 184 | 184 | "expected": 40.0, |
| 185 | 185 | "expected_type": "number", |
| 186 | 186 | "comparison": "f64_epsilon", |
| 187 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 188 | - "epsilon": 1e-09 | |
| 187 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 188 | + "epsilon": 1e-08 | |
| 189 | 189 | }, |
| 190 | 190 | { |
| 191 | 191 | "id": "0105-feel-math:022:Decision22", |
| @@ -193,8 +193,8 @@ | ||
| 193 | 193 | "expected": 261.0, |
| 194 | 194 | "expected_type": "number", |
| 195 | 195 | "comparison": "f64_epsilon", |
| 196 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 197 | - "epsilon": 1e-09 | |
| 196 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 197 | + "epsilon": 1e-08 | |
| 198 | 198 | }, |
| 199 | 199 | { |
| 200 | 200 | "id": "0105-feel-math:023:Decision23", |
| @@ -266,8 +266,8 @@ | ||
| 266 | 266 | "expected": 3.0, |
| 267 | 267 | "expected_type": "number", |
| 268 | 268 | "comparison": "f64_epsilon", |
| 269 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 270 | - "epsilon": 1e-09 | |
| 269 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 270 | + "epsilon": 1e-08 | |
| 271 | 271 | }, |
| 272 | 272 | { |
| 273 | 273 | "id": "0105-feel-math:032:Decision32", |
| @@ -275,8 +275,8 @@ | ||
| 275 | 275 | "expected": 7.5, |
| 276 | 276 | "expected_type": "number", |
| 277 | 277 | "comparison": "f64_epsilon", |
| 278 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 279 | - "epsilon": 1e-09 | |
| 278 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 279 | + "epsilon": 1e-08 | |
| 280 | 280 | }, |
| 281 | 281 | { |
| 282 | 282 | "id": "0105-feel-math:033:Decision33", |
| @@ -284,7 +284,7 @@ | ||
| 284 | 284 | "expected": 1200.0, |
| 285 | 285 | "expected_type": "number", |
| 286 | 286 | "comparison": "f64_epsilon", |
| 287 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 288 | - "epsilon": 1e-09 | |
| 287 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 288 | + "epsilon": 1e-08 | |
| 289 | 289 | } |
| 290 | 290 | ] |
modified crates/feel-core/tests/fixtures/1100-feel-decimal-function.json +16 −16
| @@ -5,8 +5,8 @@ | ||
| 5 | 5 | "expected": 0.33, |
| 6 | 6 | "expected_type": "number", |
| 7 | 7 | "comparison": "f64_epsilon", |
| 8 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 9 | - "epsilon": 1e-09 | |
| 8 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 9 | + "epsilon": 1e-08 | |
| 10 | 10 | }, |
| 11 | 11 | { |
| 12 | 12 | "id": "1100-feel-decimal-function:002_f4ed9cd487:feel-decimal-function_002_f4ed9cd487", |
| @@ -14,8 +14,8 @@ | ||
| 14 | 14 | "expected": 0.33, |
| 15 | 15 | "expected_type": "number", |
| 16 | 16 | "comparison": "f64_epsilon", |
| 17 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 18 | - "epsilon": 1e-09 | |
| 17 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 18 | + "epsilon": 1e-08 | |
| 19 | 19 | }, |
| 20 | 20 | { |
| 21 | 21 | "id": "1100-feel-decimal-function:003_2d50ec7ffc:feel-decimal-function_003_2d50ec7ffc", |
| @@ -23,8 +23,8 @@ | ||
| 23 | 23 | "expected": 2.0, |
| 24 | 24 | "expected_type": "number", |
| 25 | 25 | "comparison": "f64_epsilon", |
| 26 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 27 | - "epsilon": 1e-09 | |
| 26 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 27 | + "epsilon": 1e-08 | |
| 28 | 28 | }, |
| 29 | 29 | { |
| 30 | 30 | "id": "1100-feel-decimal-function:004_bb6f445d2c:feel-decimal-function_004_bb6f445d2c", |
| @@ -32,8 +32,8 @@ | ||
| 32 | 32 | "expected": 2.0, |
| 33 | 33 | "expected_type": "number", |
| 34 | 34 | "comparison": "f64_epsilon", |
| 35 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 36 | - "epsilon": 1e-09 | |
| 35 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 36 | + "epsilon": 1e-08 | |
| 37 | 37 | }, |
| 38 | 38 | { |
| 39 | 39 | "id": "1100-feel-decimal-function:005_55d33eadf6:feel-decimal-function_005_55d33eadf6", |
| @@ -41,8 +41,8 @@ | ||
| 41 | 41 | "expected": 0.0, |
| 42 | 42 | "expected_type": "number", |
| 43 | 43 | "comparison": "f64_epsilon", |
| 44 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 45 | - "epsilon": 1e-09 | |
| 44 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 45 | + "epsilon": 1e-08 | |
| 46 | 46 | }, |
| 47 | 47 | { |
| 48 | 48 | "id": "1100-feel-decimal-function:006_d9661e1d45:feel-decimal-function_006_d9661e1d45", |
| @@ -50,8 +50,8 @@ | ||
| 50 | 50 | "expected": 0.0, |
| 51 | 51 | "expected_type": "number", |
| 52 | 52 | "comparison": "f64_epsilon", |
| 53 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 54 | - "epsilon": 1e-09 | |
| 53 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 54 | + "epsilon": 1e-08 | |
| 55 | 55 | }, |
| 56 | 56 | { |
| 57 | 57 | "id": "1100-feel-decimal-function:007_49f7a22058:feel-decimal-function_007_49f7a22058", |
| @@ -59,8 +59,8 @@ | ||
| 59 | 59 | "expected": 0.52, |
| 60 | 60 | "expected_type": "number", |
| 61 | 61 | "comparison": "f64_epsilon", |
| 62 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 63 | - "epsilon": 1e-09 | |
| 62 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 63 | + "epsilon": 1e-08 | |
| 64 | 64 | }, |
| 65 | 65 | { |
| 66 | 66 | "id": "1100-feel-decimal-function:008_73e4f1c8b9:feel-decimal-function_008_73e4f1c8b9", |
| @@ -68,8 +68,8 @@ | ||
| 68 | 68 | "expected": 65.123456, |
| 69 | 69 | "expected_type": "number", |
| 70 | 70 | "comparison": "f64_epsilon", |
| 71 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 72 | - "epsilon": 1e-09 | |
| 71 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 72 | + "epsilon": 1e-08 | |
| 73 | 73 | }, |
| 74 | 74 | { |
| 75 | 75 | "id": "1100-feel-decimal-function:009_398b94286e:feel-decimal-function_009_398b94286e", |
modified crates/feel-core/tests/fixtures/1101-feel-floor-function.json +10 −10
| @@ -5,8 +5,8 @@ | ||
| 5 | 5 | "expected": 1.0, |
| 6 | 6 | "expected_type": "number", |
| 7 | 7 | "comparison": "f64_epsilon", |
| 8 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 9 | - "epsilon": 1e-09 | |
| 8 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 9 | + "epsilon": 1e-08 | |
| 10 | 10 | }, |
| 11 | 11 | { |
| 12 | 12 | "id": "1101-feel-floor-function:002:decision002", |
| @@ -14,8 +14,8 @@ | ||
| 14 | 14 | "expected": -2.0, |
| 15 | 15 | "expected_type": "number", |
| 16 | 16 | "comparison": "f64_epsilon", |
| 17 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 18 | - "epsilon": 1e-09 | |
| 17 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 18 | + "epsilon": 1e-08 | |
| 19 | 19 | }, |
| 20 | 20 | { |
| 21 | 21 | "id": "1101-feel-floor-function:003:decision003", |
| @@ -23,8 +23,8 @@ | ||
| 23 | 23 | "expected": 0.0, |
| 24 | 24 | "expected_type": "number", |
| 25 | 25 | "comparison": "f64_epsilon", |
| 26 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 27 | - "epsilon": 1e-09 | |
| 26 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 27 | + "epsilon": 1e-08 | |
| 28 | 28 | }, |
| 29 | 29 | { |
| 30 | 30 | "id": "1101-feel-floor-function:004:decision004", |
| @@ -32,8 +32,8 @@ | ||
| 32 | 32 | "expected": 1.5, |
| 33 | 33 | "expected_type": "number", |
| 34 | 34 | "comparison": "f64_epsilon", |
| 35 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 36 | - "epsilon": 1e-09 | |
| 35 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 36 | + "epsilon": 1e-08 | |
| 37 | 37 | }, |
| 38 | 38 | { |
| 39 | 39 | "id": "1101-feel-floor-function:005:decision005", |
| @@ -41,8 +41,8 @@ | ||
| 41 | 41 | "expected": -1.6, |
| 42 | 42 | "expected_type": "number", |
| 43 | 43 | "comparison": "f64_epsilon", |
| 44 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 45 | - "epsilon": 1e-09 | |
| 44 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 45 | + "epsilon": 1e-08 | |
| 46 | 46 | }, |
| 47 | 47 | { |
| 48 | 48 | "id": "1101-feel-floor-function:006:decision006", |
modified crates/feel-core/tests/fixtures/1102-feel-ceiling-function.json +10 −10
| @@ -5,8 +5,8 @@ | ||
| 5 | 5 | "expected": 2.0, |
| 6 | 6 | "expected_type": "number", |
| 7 | 7 | "comparison": "f64_epsilon", |
| 8 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 9 | - "epsilon": 1e-09 | |
| 8 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 9 | + "epsilon": 1e-08 | |
| 10 | 10 | }, |
| 11 | 11 | { |
| 12 | 12 | "id": "1102-feel-ceiling-function:002:decision002", |
| @@ -14,8 +14,8 @@ | ||
| 14 | 14 | "expected": -1.0, |
| 15 | 15 | "expected_type": "number", |
| 16 | 16 | "comparison": "f64_epsilon", |
| 17 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 18 | - "epsilon": 1e-09 | |
| 17 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 18 | + "epsilon": 1e-08 | |
| 19 | 19 | }, |
| 20 | 20 | { |
| 21 | 21 | "id": "1102-feel-ceiling-function:003:decision003", |
| @@ -23,8 +23,8 @@ | ||
| 23 | 23 | "expected": 0.0, |
| 24 | 24 | "expected_type": "number", |
| 25 | 25 | "comparison": "f64_epsilon", |
| 26 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 27 | - "epsilon": 1e-09 | |
| 26 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 27 | + "epsilon": 1e-08 | |
| 28 | 28 | }, |
| 29 | 29 | { |
| 30 | 30 | "id": "1102-feel-ceiling-function:004:decision004", |
| @@ -32,8 +32,8 @@ | ||
| 32 | 32 | "expected": 1.6, |
| 33 | 33 | "expected_type": "number", |
| 34 | 34 | "comparison": "f64_epsilon", |
| 35 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 36 | - "epsilon": 1e-09 | |
| 35 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 36 | + "epsilon": 1e-08 | |
| 37 | 37 | }, |
| 38 | 38 | { |
| 39 | 39 | "id": "1102-feel-ceiling-function:005:decision005", |
| @@ -41,8 +41,8 @@ | ||
| 41 | 41 | "expected": -1.5, |
| 42 | 42 | "expected_type": "number", |
| 43 | 43 | "comparison": "f64_epsilon", |
| 44 | - "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128; numeric results are compared with an epsilon tolerance instead of exact equality to avoid false negatives from binary floating-point rounding.", | |
| 45 | - "epsilon": 1e-09 | |
| 44 | + "deviation": "feel-core uses f64 arithmetic while the DMN/FEEL spec mandates decimal128, and the TCK rounds non-terminating results to a fixed number of decimal places; numeric results are therefore compared with an epsilon tolerance instead of exact equality to avoid false negatives from either source.", | |
| 45 | + "epsilon": 1e-08 | |
| 46 | 46 | }, |
| 47 | 47 | { |
| 48 | 48 | "id": "1102-feel-ceiling-function:006:decision006", |