@@ -112,7 +112,7 @@ test('.G0 continues the path if the job has one', () => {
112112 job . state . z = 5 ;
113113 interpreter . execute ( [ command1 ] , job ) ;
114114
115- interpreter . G0 ( command2 , job ) ;
115+ interpreter . g0 ( command2 , job ) ;
116116
117117 expect ( job . paths . length ) . toEqual ( 0 ) ;
118118 expect ( job . inprogressPath ?. vertices . length ) . toEqual ( 9 ) ;
@@ -126,7 +126,7 @@ test(".G0 assigns the travel type if there's no extrusion", () => {
126126 const interpreter = new Interpreter ( ) ;
127127 const job = new Job ( ) ;
128128
129- interpreter . G0 ( command , job ) ;
129+ interpreter . g0 ( command , job ) ;
130130
131131 expect ( job . paths . length ) . toEqual ( 0 ) ;
132132 expect ( job . inprogressPath ?. travelType ) . toEqual ( PathType . Travel ) ;
@@ -137,7 +137,7 @@ test(".G0 assigns the extrusion type if there's extrusion", () => {
137137 const interpreter = new Interpreter ( ) ;
138138 const job = new Job ( ) ;
139139
140- interpreter . G0 ( command , job ) ;
140+ interpreter . g0 ( command , job ) ;
141141
142142 expect ( job . paths . length ) . toEqual ( 0 ) ;
143143 expect ( job . inprogressPath ?. travelType ) . toEqual ( 'Extrusion' ) ;
@@ -148,7 +148,7 @@ test('.G0 assigns the travel type if the extrusion is a retraction', () => {
148148 const interpreter = new Interpreter ( ) ;
149149 const job = new Job ( ) ;
150150
151- interpreter . G0 ( command , job ) ;
151+ interpreter . g0 ( command , job ) ;
152152
153153 expect ( job . paths . length ) . toEqual ( 0 ) ;
154154 expect ( job . inprogressPath ?. travelType ) . toEqual ( 'Travel' ) ;
@@ -159,7 +159,7 @@ test('.G0 assigns the travel type if the extrusion is a retraction', () => {
159159 const interpreter = new Interpreter ( ) ;
160160 const job = new Job ( ) ;
161161
162- interpreter . G0 ( command , job ) ;
162+ interpreter . g0 ( command , job ) ;
163163
164164 expect ( job . paths . length ) . toEqual ( 0 ) ;
165165 expect ( job . inprogressPath ?. travelType ) . toEqual ( 'Travel' ) ;
@@ -172,7 +172,7 @@ test('.G0 starts a new path if the travel type changes from Travel to Extrusion'
172172 const job = new Job ( ) ;
173173 interpreter . execute ( [ command1 ] , job ) ;
174174
175- interpreter . G0 ( command2 , job ) ;
175+ interpreter . g0 ( command2 , job ) ;
176176
177177 expect ( job . paths . length ) . toEqual ( 1 ) ;
178178 expect ( job . inprogressPath ?. travelType ) . toEqual ( 'Extrusion' ) ;
@@ -185,7 +185,7 @@ test('.G0 starts a new path if the travel type changes from Extrusion to Travel'
185185 const job = new Job ( ) ;
186186 interpreter . execute ( [ command1 ] , job ) ;
187187
188- interpreter . G0 ( command2 , job ) ;
188+ interpreter . g0 ( command2 , job ) ;
189189
190190 expect ( job . paths . length ) . toEqual ( 1 ) ;
191191 expect ( job . inprogressPath ?. travelType ) . toEqual ( 'Travel' ) ;
@@ -194,15 +194,15 @@ test('.G0 starts a new path if the travel type changes from Extrusion to Travel'
194194test ( '.G1 is an alias to .G0' , ( ) => {
195195 const interpreter = new Interpreter ( ) ;
196196
197- expect ( interpreter . G1 ) . toEqual ( interpreter . G0 ) ;
197+ expect ( interpreter . g1 ) . toEqual ( interpreter . g0 ) ;
198198} ) ;
199199
200200test ( '.G20 sets the units to inches' , ( ) => {
201201 const command = new GCodeCommand ( 'G20' , 'g20' , { } ) ;
202202 const interpreter = new Interpreter ( ) ;
203203 const job = new Job ( ) ;
204204
205- interpreter . G20 ( command , job ) ;
205+ interpreter . g20 ( command , job ) ;
206206
207207 expect ( job . state . units ) . toEqual ( 'in' ) ;
208208} ) ;
@@ -212,7 +212,7 @@ test('.G21 sets the units to millimeters', () => {
212212 const interpreter = new Interpreter ( ) ;
213213 const job = new Job ( ) ;
214214
215- interpreter . G21 ( command , job ) ;
215+ interpreter . g21 ( command , job ) ;
216216
217217 expect ( job . state . units ) . toEqual ( 'mm' ) ;
218218} ) ;
@@ -224,7 +224,7 @@ test('.g28 moves the state to the origin', () => {
224224 job . state . x = 3 ;
225225 job . state . y = 4 ;
226226
227- interpreter . G28 ( command , job ) ;
227+ interpreter . g28 ( command , job ) ;
228228
229229 expect ( job . state . x ) . toEqual ( 0 ) ;
230230 expect ( job . state . y ) . toEqual ( 0 ) ;
@@ -237,7 +237,7 @@ test('.t0 sets the tool to 0', () => {
237237 const job = new Job ( ) ;
238238 job . state . tool = 3 ;
239239
240- interpreter . T0 ( command , job ) ;
240+ interpreter . t0 ( command , job ) ;
241241
242242 expect ( job . state . tool ) . toEqual ( 0 ) ;
243243} ) ;
@@ -248,7 +248,7 @@ test('.t1 sets the tool to 1', () => {
248248 const job = new Job ( ) ;
249249 job . state . tool = 3 ;
250250
251- interpreter . T1 ( command , job ) ;
251+ interpreter . t1 ( command , job ) ;
252252
253253 expect ( job . state . tool ) . toEqual ( 1 ) ;
254254} ) ;
@@ -259,7 +259,7 @@ test('.t2 sets the tool to 2', () => {
259259 const job = new Job ( ) ;
260260 job . state . tool = 3 ;
261261
262- interpreter . T2 ( command , job ) ;
262+ interpreter . t2 ( command , job ) ;
263263
264264 expect ( job . state . tool ) . toEqual ( 2 ) ;
265265} ) ;
@@ -270,7 +270,7 @@ test('.t3 sets the tool to 3', () => {
270270 const job = new Job ( ) ;
271271 job . state . tool = 3 ;
272272
273- interpreter . T3 ( command , job ) ;
273+ interpreter . t3 ( command , job ) ;
274274
275275 expect ( job . state . tool ) . toEqual ( 3 ) ;
276276} ) ;
@@ -281,7 +281,7 @@ test('.t4 sets the tool to 4', () => {
281281 const job = new Job ( ) ;
282282 job . state . tool = 3 ;
283283
284- interpreter . T4 ( command , job ) ;
284+ interpreter . t4 ( command , job ) ;
285285
286286 expect ( job . state . tool ) . toEqual ( 4 ) ;
287287} ) ;
@@ -292,7 +292,7 @@ test('.t5 sets the tool to 5', () => {
292292 const job = new Job ( ) ;
293293 job . state . tool = 3 ;
294294
295- interpreter . T5 ( command , job ) ;
295+ interpreter . t5 ( command , job ) ;
296296
297297 expect ( job . state . tool ) . toEqual ( 5 ) ;
298298} ) ;
@@ -303,7 +303,7 @@ test('.t6 sets the tool to 6', () => {
303303 const job = new Job ( ) ;
304304 job . state . tool = 3 ;
305305
306- interpreter . T6 ( command , job ) ;
306+ interpreter . t6 ( command , job ) ;
307307
308308 expect ( job . state . tool ) . toEqual ( 6 ) ;
309309} ) ;
@@ -314,7 +314,7 @@ test('.t7 sets the tool to 7', () => {
314314 const job = new Job ( ) ;
315315 job . state . tool = 3 ;
316316
317- interpreter . T7 ( command , job ) ;
317+ interpreter . t7 ( command , job ) ;
318318
319319 expect ( job . state . tool ) . toEqual ( 7 ) ;
320320} ) ;
0 commit comments