Skip to content

Commit 6321186

Browse files
committed
Document new features in advisory, fix test under float condition
1 parent 8bfe1f7 commit 6321186

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CompatibilityAdvisory.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Function Changes
44

5+
- `MIN`, `MAX`, `SUM`, `AVERAGE`, `IFS`, `OR`, and `AND` now take up to 24 arguments.
56
- `set_variables_and_functions()` now requires a `std::set<te_variable>` argument instead of a
67
`std::vector<te_variable>`. Prefer calling this function with an initializer list
78
(see [Example 2](Examples.md)) or use `std::set<te_variable>`.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ for a full list of features.
2525
| cppcheck | [![cppcheck](https://github.com/Blake-Madden/tinyexpr-plusplus/actions/workflows/cppcheck.yml/badge.svg)](https://github.com/Blake-Madden/tinyexpr-plusplus/actions/workflows/cppcheck.yml) |
2626
| MS PREfast | [![Microsoft C++ Code Analysis](https://github.com/Blake-Madden/tinyexpr-plusplus/actions/workflows/msvc.yml/badge.svg)](https://github.com/Blake-Madden/tinyexpr-plusplus/actions/workflows/msvc.yml) |
2727
| CodeQL | [![CodeQL](https://github.com/Blake-Madden/tinyexpr-plusplus/actions/workflows/codeql.yml/badge.svg)](https://github.com/Blake-Madden/tinyexpr-plusplus/actions/workflows/codeql.yml) |
28-
| i18n-check | [![i18n-check](https://github.com/Blake-Madden/tinyexpr-plusplus/actions/workflows/i18n-check.yml/badge.svg)](https://github.com/Blake-Madden/tinyexpr-plusplus/actions/workflows/i18n-check.yml) |
28+
| Quneiform | [![i18n-check](https://github.com/Blake-Madden/tinyexpr-plusplus/actions/workflows/i18n-check.yml/badge.svg)](https://github.com/Blake-Madden/tinyexpr-plusplus/actions/workflows/i18n-check.yml) |
2929

3030

3131
| Documentation Checks | Result |

tests/tetests.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4017,7 +4017,7 @@ TEST_CASE("Nominal", "[finance]")
40174017

40184018
CHECK_THAT(4, Catch::Matchers::WithinRel(WITHIN_TYPE_CAST(tep.evaluate("NOMINAL(8, 2)"))));
40194019
CHECK_THAT(0.05250032, Catch::Matchers::WithinRel(WITHIN_TYPE_CAST(tep.evaluate("NOMINAL(0.053543, 4)")), WITHIN_TYPE_CAST(0.00001)));
4020-
CHECK_THAT(0.00995132100969354, Catch::Matchers::WithinRel(WITHIN_TYPE_CAST(tep.evaluate("=NOMINAL(0.01,50)")), WITHIN_TYPE_CAST(0.0001)));
4020+
CHECK_THAT(0.00995132100969354, Catch::Matchers::WithinRel(WITHIN_TYPE_CAST(tep.evaluate("=NOMINAL(0.01,50)")), WITHIN_TYPE_CAST(0.001)));
40214021
CHECK_THAT(0.20744331009791, Catch::Matchers::WithinRel(WITHIN_TYPE_CAST(tep.evaluate("=NOMINAL(0.23,50)")), WITHIN_TYPE_CAST(0.00001)));
40224022

40234023
CHECK(std::isnan(WITHIN_TYPE_CAST(tep.evaluate("NOMINAL(8, 0)"))));

0 commit comments

Comments
 (0)