Wrote tests for LineIsZHoming
Made sure we don't clear leveling data while viewing.
This commit is contained in:
parent
a5bf0d7504
commit
a3d4032704
3 changed files with 21 additions and 1 deletions
|
|
@ -106,6 +106,23 @@ namespace MatterControl.Tests.MatterControl
|
|||
return totalGCodeStream;
|
||||
}
|
||||
|
||||
[Test, Category("GCodeStream")]
|
||||
public void CorrectLineIsZHomingProcessing()
|
||||
{
|
||||
Assert.IsTrue(GCodeStream.LineIsZHoming("G28 ; home all axes"), "has a comment");
|
||||
Assert.IsTrue(GCodeStream.LineIsZHoming("G28 "), "has a space");
|
||||
Assert.IsTrue(GCodeStream.LineIsZHoming("G28"), "exact");
|
||||
Assert.IsTrue(GCodeStream.LineIsZHoming("G28 Z0"), "exact");
|
||||
Assert.IsTrue(GCodeStream.LineIsZHoming("G28 Z"), "exact");
|
||||
|
||||
Assert.IsFalse(GCodeStream.LineIsZHoming("G29"), "wrong command");
|
||||
Assert.IsFalse(GCodeStream.LineIsZHoming("G28 X"), "is x homing");
|
||||
Assert.IsFalse(GCodeStream.LineIsZHoming("G28 X0"), "is x homing");
|
||||
Assert.IsFalse(GCodeStream.LineIsZHoming("G28 Y"), "is y homing");
|
||||
Assert.IsFalse(GCodeStream.LineIsZHoming("G28 Y0"), "is y homing");
|
||||
Assert.IsFalse(GCodeStream.LineIsZHoming("G28 XY"), "is xy homing");
|
||||
}
|
||||
|
||||
[Test, Category("GCodeStream")]
|
||||
public void CorrectEOutputPositions()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue