Fixed build issues caused by changes to a yacht step turn constant.

#bug
This commit is contained in:
Calum
2017-08-13 20:40:18 +12:00
parent 0ee12021e2
commit 2d5492601f
2 changed files with 3 additions and 18 deletions
-15
View File
@@ -69,24 +69,9 @@
<artifactId>commons-cli</artifactId>
<version>1.4</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.testfx/testfx-core -->
<dependency>
<groupId>org.testfx</groupId>
<artifactId>testfx-core</artifactId>
<version>4.0.1-alpha</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.testfx/testfx-junit -->
<dependency>
<groupId>org.testfx</groupId>
<artifactId>testfx-junit</artifactId>
<version>4.0.6-alpha</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
+3 -3
View File
@@ -37,12 +37,12 @@ public class YachtTest {
for (Double begin : values.keySet()) {
y1.setHeading(begin);
y1.tackGybe(windDirection);
for (int i = 0; i < 50; i++) {
for (int i = 0; i < 200; i++) {
y1.runAutoPilot();
}
assertEquals(values.get(begin), y1.getHeading(), 5.0);
}
}
@Test
@@ -70,7 +70,7 @@ public class YachtTest {
System.out.println(begin);
y1.setHeading(begin);
y1.turnToVMG();
for (int i = 0; i < 50; i++) {
for (int i = 0; i < 200; i++) {
y1.runAutoPilot();
System.out.println(y1.getHeading());
}