Changeset View
Changeset View
Standalone View
Standalone View
unittests/gcodetests.cpp
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Line(s) | 177 | { | |||
---|---|---|---|---|---|
178 | QVERIFY(GCode::toString(GCode::G161) == QObject::tr("G161: Home axis to minimum")); | 178 | QVERIFY(GCode::toString(GCode::G161) == QObject::tr("G161: Home axis to minimum")); | ||
179 | } | 179 | } | ||
180 | 180 | | |||
181 | void GCodeTests::string_G162() | 181 | void GCodeTests::string_G162() | ||
182 | { | 182 | { | ||
183 | QVERIFY(GCode::toString(GCode::G162) == QObject::tr("G162: Home axis to maximum")); | 183 | QVERIFY(GCode::toString(GCode::G162) == QObject::tr("G162: Home axis to maximum")); | ||
184 | } | 184 | } | ||
185 | 185 | | |||
186 | void GCodeTests::command_M84() | ||||
187 | { | ||||
188 | QVERIFY(GCode::toCommand(GCode::M84) == QStringLiteral("M84")); | ||||
189 | QVERIFY(GCode::toCommand(GCode::M84, QStringLiteral("10")) == QStringLiteral("M84 S10")); | ||||
190 | } | ||||
191 | | ||||
186 | void GCodeTests::command_M104() | 192 | void GCodeTests::command_M104() | ||
187 | { | 193 | { | ||
188 | QVERIFY(GCode::toCommand(GCode::M104) == QStringLiteral("ERROR! M104: It's obligatory to have an argument")); | 194 | QVERIFY(GCode::toCommand(GCode::M104) == QStringLiteral("ERROR! M104: It's obligatory to have an argument")); | ||
189 | QVERIFY(GCode::toCommand(GCode::M104, QStringLiteral("100")) == QStringLiteral("M104 S100")); | 195 | QVERIFY(GCode::toCommand(GCode::M104, QStringLiteral("100")) == QStringLiteral("M104 S100")); | ||
190 | QVERIFY(GCode::toCommand(GCode::M104, QStringLiteral("3"), QStringLiteral("100")) == QStringLiteral("M104 P3 S100")); | 196 | QVERIFY(GCode::toCommand(GCode::M104, QStringLiteral("3"), QStringLiteral("100")) == QStringLiteral("M104 P3 S100")); | ||
191 | } | 197 | } | ||
192 | 198 | | |||
193 | void GCodeTests::command_M105() | 199 | void GCodeTests::command_M105() | ||
▲ Show 20 Lines • Show All 1017 Lines • Show Last 20 Lines |