Skip to content

Commit 5b6f0f6

Browse files
committed
Add test case for math.mode
Cover the case in which there are two bytes that appear the same number of times. The lowest byte should be the mode.
1 parent a1015aa commit 5b6f0f6

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
@@ -167,6 +167,14 @@ int main(int argc, char** argv)
167167
}",
168168
"ABABA");
169169

170+
assert_true_rule_blob(
171+
"import \"math\" \
172+
rule test { \
173+
condition: \
174+
math.mode() == 0x41 \
175+
}",
176+
"ABAB");
177+
170178
assert_true_rule_blob(
171179
"import \"math\" \
172180
rule test { \

0 commit comments

Comments
 (0)