Run Python unittests and doctests.
Add a meta/check.sh script that runs unit tests before the syntax linters. Add unittest converters for the existing doctests.
This commit is contained in:
@@ -121,7 +121,3 @@ class Formatter(object):
|
||||
"""Add a (multi-line) documentation comment."""
|
||||
s = re.sub('^', self.indent + '/// ', s, flags=re.M) + '\n'
|
||||
self.lines.append(s)
|
||||
|
||||
if __name__ == "__main__":
|
||||
import doctest
|
||||
doctest.testmod()
|
||||
|
||||
Reference in New Issue
Block a user