Add test case for math.entropy where input is an empty string.

This commit is contained in:
Victor M. Alvarez
2024-03-25 10:49:06 +01:00
parent 07e46fa305
commit 94b7da931c
+8
View File
@@ -191,6 +191,14 @@ int main(int argc, char** argv)
}",
NULL);
assert_true_rule(
"import \"math\" \
rule test { \
condition: \
math.entropy(\"\") == 0.0 \
}",
NULL);
assert_true_rule(
"import \"math\" \
rule test { \