summaryrefslogtreecommitdiff
path: root/tests/test_rs274x.py
diff options
context:
space:
mode:
authorHiroshi Murayama <opiopan@gmail.com>2019-09-09 21:52:52 +0900
committerHiroshi Murayama <opiopan@gmail.com>2019-09-09 21:52:52 +0900
commit4c4ba0762b30fdd4633a6d2868c508184d681b7d (patch)
treeec75907d157c3d42b7bb19e732bc3ebbe9e41efd /tests/test_rs274x.py
parent2b1c751ff76ebd6901633235ee694cc93dabce81 (diff)
downloadgerbonara-4c4ba0762b30fdd4633a6d2868c508184d681b7d.tar.gz
gerbonara-4c4ba0762b30fdd4633a6d2868c508184d681b7d.tar.bz2
gerbonara-4c4ba0762b30fdd4633a6d2868c508184d681b7d.zip
fix issue #2: single quadrant mode is supported
Diffstat (limited to 'tests/test_rs274x.py')
-rw-r--r--tests/test_rs274x.py7
1 files changed, 7 insertions, 0 deletions
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()