Skip to content

Commit ea7d35d

Browse files
committed
Added some comments
1 parent 7ec1c5c commit ea7d35d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

minmax/fuzzing/minmax_element_variants.fuzz.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t sz) {
5656
uint8_t max_value = *resultff.second;
5757
assert(min_value <= max_value);
5858

59+
// Each variant should have found the same min/max values
5960
assert(*resultff.first == min_value);
6061
assert(*resultfl.first == min_value);
6162
assert(*resultlf.first == min_value);
@@ -107,6 +108,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t sz) {
107108

108109
assert (!greater(max_value, min_value));
109110

111+
// Each variant should have found the same min/max values
110112
assert(*resultff.first == min_value);
111113
assert(*resultfl.first == min_value);
112114
assert(*resultlf.first == min_value);

0 commit comments

Comments
 (0)