expanding test coverage
This commit is contained in:
parent
6e7ca8ed7a
commit
ed83278ab5
|
@ -26,6 +26,7 @@ public class AutoTest {
|
||||||
|
|
||||||
static void mainTestBody() {
|
static void mainTestBody() {
|
||||||
sendCommand("fl 1"); // just in case it was disabled
|
sendCommand("fl 1"); // just in case it was disabled
|
||||||
|
testCustomEngine();
|
||||||
testMazdaMiata2003();
|
testMazdaMiata2003();
|
||||||
test2003DodgeNeon();
|
test2003DodgeNeon();
|
||||||
testFordAspire();
|
testFordAspire();
|
||||||
|
@ -41,6 +42,11 @@ public class AutoTest {
|
||||||
testFordFiesta();
|
testFordFiesta();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void testCustomEngine() {
|
||||||
|
setEngineType(0);
|
||||||
|
sendCommand("set_toothed_wheel 4 0");
|
||||||
|
}
|
||||||
|
|
||||||
private static void testMazdaMiata2003() {
|
private static void testMazdaMiata2003() {
|
||||||
setEngineType(47);
|
setEngineType(47);
|
||||||
}
|
}
|
||||||
|
@ -438,7 +444,7 @@ public class AutoTest {
|
||||||
|
|
||||||
boolean failed = false;
|
boolean failed = false;
|
||||||
try {
|
try {
|
||||||
IoUtil.launchSimulator(true);
|
IoUtil.launchSimulator(false);
|
||||||
mainTestBody();
|
mainTestBody();
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
Loading…
Reference in New Issue