Add bad exists interpreter error fixtures
This commit is contained in:
3
wasm-port/vendor/linuxcnc/tests/interp/bad/exists-1.ngc
vendored
Normal file
3
wasm-port/vendor/linuxcnc/tests/interp/bad/exists-1.ngc
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
(Expected # reading parameter)
|
||||
G0 X EXISTS[1]
|
||||
M2
|
||||
3
wasm-port/vendor/linuxcnc/tests/interp/bad/exists-2.ngc
vendored
Normal file
3
wasm-port/vendor/linuxcnc/tests/interp/bad/exists-2.ngc
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
(Expected ] reading bracketed parameter)
|
||||
G0 X EXISTS[#1+#2]
|
||||
M2
|
||||
4
wasm-port/vendor/linuxcnc/tests/interp/bad/exists-3.ngc
vendored
Normal file
4
wasm-port/vendor/linuxcnc/tests/interp/bad/exists-3.ngc
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
(Parameter number out of range)
|
||||
#2=99999
|
||||
G0 X EXISTS[###2]
|
||||
M2
|
||||
3
wasm-port/vendor/linuxcnc/tests/interp/bad/exists-4.ngc
vendored
Normal file
3
wasm-port/vendor/linuxcnc/tests/interp/bad/exists-4.ngc
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
(Unknown word starting with f)
|
||||
G0 X EXISTS[#foo]
|
||||
M2
|
||||
3
wasm-port/vendor/linuxcnc/tests/interp/bad/exists-5.ngc
vendored
Normal file
3
wasm-port/vendor/linuxcnc/tests/interp/bad/exists-5.ngc
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
(Named parameter not terminated)
|
||||
G0 X EXISTS[#<foo]
|
||||
M2
|
||||
3
wasm-port/vendor/linuxcnc/tests/interp/bad/exists-6.ngc
vendored
Normal file
3
wasm-port/vendor/linuxcnc/tests/interp/bad/exists-6.ngc
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
;bad number format (conversion failed) parsing ''
|
||||
G0 X EXISTS[#]
|
||||
M2
|
||||
3
wasm-port/vendor/linuxcnc/tests/interp/bad/exists-7.ngc
vendored
Normal file
3
wasm-port/vendor/linuxcnc/tests/interp/bad/exists-7.ngc
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
(Expected ] reading bracketed parameter)
|
||||
G0 X EXISTS[#<foo>+1]
|
||||
M2
|
||||
Reference in New Issue
Block a user