Move some utility functions into the cdsl package.

- is_power_of_two
- next_power_of_two

Make sure we run doctests on these functions.
This commit is contained in:
Jakob Stoklund Olesen
2016-11-11 13:04:30 -08:00
parent 77c672a279
commit c20d7d8f13
4 changed files with 53 additions and 28 deletions

View File

@@ -0,0 +1,8 @@
from __future__ import absolute_import
import doctest
import cdsl
def load_tests(loader, tests, ignore):
tests.addTests(doctest.DocTestSuite(cdsl))
return tests