1 # Copyright © 2018, 2021 Nick Bowler
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <https://www.gnu.org/licenses/>.
16 AT_SETUP([basic operation])
39 AT_CHECK([slotifier test.cnc], [0],
46 X001000Y002300G85X001200Y002300
50 X001000Y003000G85X001400Y003000
57 AT_SETUP([non-overlapping holes])
73 AT_CHECK([slotifier test.cnc], [0],
80 X010512Y002362G85X010512Y002047
97 X010512Y002362G85X010512Y002047
101 AT_CHECK([slotifier test.cnc], [0],
107 X010512Y002362G85X010512Y002047
114 AT_SETUP([asymmetric overlap])
130 AT_CHECK([slotifier test.cnc], [0],
137 X010000Y010000G85X010300Y010000
145 AT_SETUP([asymmetric overlap #2])
161 AT_CHECK([slotifier test.cnc], [0],
168 X010800Y010000G85X010000Y010000