Skip to content

Commit 94b7da9

Browse files
committed
Add test case for math.entropy where input is an empty string.
1 parent 07e46fa commit 94b7da9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test-math.c

+8
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,14 @@ int main(int argc, char** argv)
191191
}",
192192
NULL);
193193

194+
assert_true_rule(
195+
"import \"math\" \
196+
rule test { \
197+
condition: \
198+
math.entropy(\"\") == 0.0 \
199+
}",
200+
NULL);
201+
194202
assert_true_rule(
195203
"import \"math\" \
196204
rule test { \

0 commit comments

Comments
 (0)