943ba393dafc67e0df779829c3d33ac34bcb3fa3 |
|
19-Apr-2016 |
Phil Carmody <phil@dovecot.fi> |
lib: test-bits - add fraclog test for most usual case, constant fracbits
Were there to be any difference between the constant and non-constant tests,
then it would be a compiler error, but it's better to be defensive and know
about that case.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
20be2a7b3ad5aa062d15e0d7146aaad3ba172804 |
|
19-Apr-2016 |
Phil Carmody <phil@dovecot.fi> |
lib: test-bits - test the new fractional log helpers
Ensure that the beginning and end of every bucket range are both mapped
into that bucket. It also checks that the bucket ranges are contiguous.
Assuming the function's weakly monatonic, this is as good as testing
every single value.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |