From 4c4ba0762b30fdd4633a6d2868c508184d681b7d Mon Sep 17 00:00:00 2001 From: Hiroshi Murayama Date: Mon, 9 Sep 2019 21:52:52 +0900 Subject: fix issue #2: single quadrant mode is supported --- tests/test_rs274x.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/test_rs274x.py') diff --git a/tests/test_rs274x.py b/tests/test_rs274x.py index 3e44066..dbb5f62 100644 --- a/tests/test_rs274x.py +++ b/tests/test_rs274x.py @@ -17,6 +17,7 @@ class TestRs274x(unittest.TestCase): cls.OUTPREFIX = 'RS2724x_' cls.METRIC_FILE = os.path.join(cls.INDIR, 'ref_gerber_metric.gtl') cls.INCH_FILE = os.path.join(cls.INDIR, 'ref_gerber_inch.gtl') + cls.SQ_FILE = os.path.join(cls.INDIR, 'ref_gerber_single_quadrant.gtl') try: os.mkdir(cls.OUTDIR) except FileExistsError: @@ -65,5 +66,11 @@ class TestRs274x(unittest.TestCase): gerber.write(outfile) self._checkResult(outfile) + def test_single_quadrant(self): + outfile = os.path.join(self.OUTDIR, self.OUTPREFIX + 'single_quadrant.gtl') + gerber = gerberex.read(self.SQ_FILE) + gerber.write(outfile) + self._checkResult(outfile) + if __name__ == '__main__': unittest.main() -- cgit