1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

tests: add test with a float number using a lot of decimals in calculation of expression

This test validates the fix made in commit
5b4820ab06 and will prevent regression with such
numbers.
This commit is contained in:
Sébastien Helleu
2025-06-07 09:45:15 +02:00
parent 103bddcc50
commit a6e859b7ff
+1
View File
@@ -344,6 +344,7 @@ TEST(CoreCalc, Expression)
WEE_CHECK_CALC("0.0000000008", "1/1234567890");
WEE_CHECK_CALC("0.0000000001", "1/12345678901");
WEE_CHECK_CALC("0", "1/123456789012");
WEE_CHECK_CALC("1.2222222222", "1+0.22222222222222222222222222222222222");
/* expressions with parentheses */
WEE_CHECK_CALC("6", "((6))");