Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kliment/Printrun.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvolconst <20997907+volconst@users.noreply.github.com>2021-02-01 20:12:45 +0300
committervolconst <20997907+volconst@users.noreply.github.com>2021-02-01 20:12:45 +0300
commitf7c43236db98ce55f09686c1d8ad398359693dc2 (patch)
tree8126f21607baaf115b3d32226878cfe9e5603759
parent5a130c37857a30f2659cd99ad8048c8bced47bdb (diff)
Add layer count test for #1155
-rw-r--r--testfiles/layer-detect2.gcode17
1 files changed, 17 insertions, 0 deletions
diff --git a/testfiles/layer-detect2.gcode b/testfiles/layer-detect2.gcode
new file mode 100644
index 0000000..7fa3f56
--- /dev/null
+++ b/testfiles/layer-detect2.gcode
@@ -0,0 +1,17 @@
+; Print this file to see the parsed layers
+; This file tests problem reported in
+; https://github.com/kliment/Printrun/pull/1069#issuecomment-770091308
+
+G28
+G0 Z15
+G1 E6 ; should not count as x,y not moved
+
+G0 X10 Y10 Z0.2
+G1 X20 E7
+
+G0 Z10
+M83 ;relative extrusion mode
+G1 E-3 ; retract should not create layer
+
+;@!print([l.z for l in self.fgcode.all_layers])
+;@!print('test ', 'passed' if len(self.fgcode.all_layers) == 1 else 'failed')