| 1 | [ |
| 2 | { |
| 3 | "id": "0051-feel-sqrt-function:001:decision001", |
| 4 | "expression": "sqrt(4)", |
| 5 | "expected": 2.0, |
| 6 | "expected_type": "number", |
| 7 | "comparison": "f64_epsilon", |
| 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 | }, |
| 11 | { |
| 12 | "id": "0051-feel-sqrt-function:002:decision002", |
| 13 | "expression": "sqrt(-1)", |
| 14 | "expected": null, |
| 15 | "expected_type": "null", |
| 16 | "comparison": "exact", |
| 17 | "deviation": null |
| 18 | }, |
| 19 | { |
| 20 | "id": "0051-feel-sqrt-function:003:decision003", |
| 21 | "expression": "sqrt(0)", |
| 22 | "expected": 0.0, |
| 23 | "expected_type": "number", |
| 24 | "comparison": "f64_epsilon", |
| 25 | "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.", |
| 26 | "epsilon": 1e-08 |
| 27 | }, |
| 28 | { |
| 29 | "id": "0051-feel-sqrt-function:004:decision004", |
| 30 | "expression": "sqrt()", |
| 31 | "expected": null, |
| 32 | "expected_type": "null", |
| 33 | "comparison": "exact", |
| 34 | "deviation": null |
| 35 | }, |
| 36 | { |
| 37 | "id": "0051-feel-sqrt-function:005:decision005", |
| 38 | "expression": "sqrt(4,4)", |
| 39 | "expected": null, |
| 40 | "expected_type": "null", |
| 41 | "comparison": "exact", |
| 42 | "deviation": null |
| 43 | }, |
| 44 | { |
| 45 | "id": "0051-feel-sqrt-function:006:decision006", |
| 46 | "expression": "sqrt(number:4)", |
| 47 | "expected": 2.0, |
| 48 | "expected_type": "number", |
| 49 | "comparison": "f64_epsilon", |
| 50 | "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.", |
| 51 | "epsilon": 1e-08 |
| 52 | }, |
| 53 | { |
| 54 | "id": "0051-feel-sqrt-function:007:decision007", |
| 55 | "expression": "sqrt(n:4)", |
| 56 | "expected": null, |
| 57 | "expected_type": "null", |
| 58 | "comparison": "exact", |
| 59 | "deviation": null |
| 60 | }, |
| 61 | { |
| 62 | "id": "0051-feel-sqrt-function:008:decision008", |
| 63 | "expression": "sqrt(null)", |
| 64 | "expected": null, |
| 65 | "expected_type": "null", |
| 66 | "comparison": "exact", |
| 67 | "deviation": null |
| 68 | }, |
| 69 | { |
| 70 | "id": "0051-feel-sqrt-function:009:decision009", |
| 71 | "expression": "sqrt(\"4\")", |
| 72 | "expected": null, |
| 73 | "expected_type": "null", |
| 74 | "comparison": "exact", |
| 75 | "deviation": null |
| 76 | }, |
| 77 | { |
| 78 | "id": "0051-feel-sqrt-function:010:decision010", |
| 79 | "expression": "sqrt(true)", |
| 80 | "expected": null, |
| 81 | "expected_type": "null", |
| 82 | "comparison": "exact", |
| 83 | "deviation": null |
| 84 | }, |
| 85 | { |
| 86 | "id": "0051-feel-sqrt-function:011:decision011", |
| 87 | "expression": "sqrt(duration(\"P4D\"))", |
| 88 | "expected": null, |
| 89 | "expected_type": "null", |
| 90 | "comparison": "exact", |
| 91 | "deviation": null |
| 92 | }, |
| 93 | { |
| 94 | "id": "0051-feel-sqrt-function:012:decision012", |
| 95 | "expression": "sqrt(duration(\"P4Y\"))", |
| 96 | "expected": null, |
| 97 | "expected_type": "null", |
| 98 | "comparison": "exact", |
| 99 | "deviation": null |
| 100 | }, |
| 101 | { |
| 102 | "id": "0051-feel-sqrt-function:013:decision013", |
| 103 | "expression": "sqrt(date(\"2018-12-06\"))", |
| 104 | "expected": null, |
| 105 | "expected_type": "null", |
| 106 | "comparison": "exact", |
| 107 | "deviation": null |
| 108 | }, |
| 109 | { |
| 110 | "id": "0051-feel-sqrt-function:014:decision014", |
| 111 | "expression": "sqrt(time(\"00:00:00\"))", |
| 112 | "expected": null, |
| 113 | "expected_type": "null", |
| 114 | "comparison": "exact", |
| 115 | "deviation": null |
| 116 | }, |
| 117 | { |
| 118 | "id": "0051-feel-sqrt-function:015:decision015", |
| 119 | "expression": "sqrt(date and time(\"2018-12-06T00:00:00\"))", |
| 120 | "expected": null, |
| 121 | "expected_type": "null", |
| 122 | "comparison": "exact", |
| 123 | "deviation": null |
| 124 | } |
| 125 | ] |