Add tests specifically for axmap_next_free()
authorMichael Kelley <mikelley@microsoft.com>
Fri, 17 Aug 2018 19:17:00 +0000 (12:17 -0700)
committerMichael Kelley <mikelley@microsoft.com>
Fri, 17 Aug 2018 19:17:00 +0000 (12:17 -0700)
commit54deacf4eadb79fda9b0f5d62633592ebf5188c0
tree93f3febe609ce0d529945ed9ba86812a3425ef5f
parentb9304c5be4efabebdc4d8bf649d7239bf8af986e
Add tests specifically for axmap_next_free()

Add tests for axmap_next_free() to ensure the new search algorithm
works correctly.  Since the new algorithm always looks forward for
the next free bit, it's possible to test for specific results given
a known condition of the map.  Test maps that are mostly empty and
mostly full. Test wrap-around. Test maps of particular sizes that
have unused bits in middle levels as well as in level 0.
t/axmap.c