Refinement in tests Output
I use logging.debug, now
This commit is contained in:
6
day9/test.py
Normal file → Executable file
6
day9/test.py
Normal file → Executable file
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env python3.11
|
||||
import unittest
|
||||
from common import OASISLine
|
||||
import logging
|
||||
|
||||
|
||||
class Day9Tests(unittest.TestCase):
|
||||
@@ -13,5 +15,7 @@ class Day9Tests(unittest.TestCase):
|
||||
extrapolation = map(lambda o: o.reduce().extrapolate_back(), analysis)
|
||||
self.assertEqual(sum(extrapolation), 2)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
unittest.main(verbosity=2)
|
||||
|
||||
Reference in New Issue
Block a user