Merge pull request #27 from marc4492/#24-createprojectstructureforunittests

#24 Create project structure for unit tests
This commit is contained in:
Marc-Antoine
2019-02-05 14:42:01 -05:00
committed by GitHub
14 changed files with 5783 additions and 5776 deletions

View File

@@ -1,5 +1,5 @@
from utils.pbmformator import formatPbm from pcbdevice.utils.pbmformator import formatPbm
from utils.savetofile import matrixToFile from pcbdevice.utils.savetofile import matrixToFile
if __name__ == "__main__": if __name__ == "__main__":
# Usage example # Usage example

View File

View File

View File

@@ -0,0 +1,5 @@
from unittest import TestCase
class TestFormatPbm(TestCase):
pass

View File

View File

@@ -3,6 +3,8 @@ import math
""" """
Reformat the file receive by the binary to ascii converter to have matrix with the right width and height Reformat the file receive by the binary to ascii converter to have matrix with the right width and height
""" """
def formatPbm(pbmFile): def formatPbm(pbmFile):
dimensionLineIndex = 2 dimensionLineIndex = 2
completeFile = [] completeFile = []