Get pixel dimensions
Add args to input width and height of the image
This commit is contained in:
		| @@ -7,12 +7,12 @@ resources = './pcbdevice/tests/resources/' | ||||
|  | ||||
| class TestFileUtils(TestCase): | ||||
| 	def test_pbmToCsv(self): | ||||
| 		actual = FileUtils.pbmToCsv(resources + 'raw/test1.pbm') | ||||
| 		actual = FileUtils.pbmToMatrix(resources + 'raw/test1.pbm') | ||||
| 		expected = TestUtils.readIntFile(resources + 'formatted/test1.csv') | ||||
| 		assert actual == expected | ||||
| 	 | ||||
| 	def test_saveMatrixToFile(self): | ||||
| 		actual = FileUtils.pbmToCsv(resources + 'raw/test1.pbm') | ||||
| 		actual = FileUtils.pbmToMatrix(resources + 'raw/test1.pbm') | ||||
| 		FileUtils.saveMatrixToFile(actual, resources + 'output/test1.csv') | ||||
| 		expected = TestUtils.readIntFile(resources + 'output/test1.csv') | ||||
| 		assert actual == expected | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Marc-Antoine Lafreniere
					Marc-Antoine Lafreniere