I think the assert-side-effects linter complains about this, so you might have two options:
- Disable the linter for the fuzz tests
- Remove the side effect
0Assertions should not have side effects:
1
2src/test/fuzz/prevector.cpp: assert(v == real_vector[pos++]);
3
4src/test/fuzz/prevector.cpp: assert(v == real_vector[--pos]);
5
6src/test/fuzz/prevector.cpp: assert(v == real_vector[pos++]);
7
8src/test/fuzz/prevector.cpp: assert(v == real_vector[--pos]);
9
10^---- failure generated from test/lint/lint-assertions.sh