aboutsummaryrefslogtreecommitdiff
path: root/tests/test_rs274x.py
diff options
context:
space:
mode:
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()