package io.github.plastix.forage.util;

public class UnitUtilsTest {
}

@@ -37,35 +37,1627 @@
 l;%0A%0A
-public class UnitUtilsTest %7B
+import org.junit.Test;%0A%0Aimport static com.google.common.truth.Truth.assertThat;%0A%0Apublic class UnitUtilsTest %7B%0A%0A    @Test%0A    public void milesToKilometer_isCorrect() %7B%0A        assertThat(UnitUtils.milesToKilometer(0)).isWithin(0).of(0);%0A        assertThat(UnitUtils.milesToKilometer(1)).isWithin(0).of(1.6093444978925633);%0A        assertThat(UnitUtils.milesToKilometer(0.5)).isWithin(0).of(0.8046722489462816);%0A        assertThat(UnitUtils.milesToKilometer(2)).isWithin(0).of(3.2186889957851266);%0A%0A    %7D%0A%0A    @Test%0A    public void metersToKilometers_isCorrect() %7B%0A        assertThat(UnitUtils.metersToKilometers(0)).isWithin(0).of(0);%0A        assertThat(UnitUtils.metersToKilometers(1)).isWithin(0).of(0.001);%0A        assertThat(UnitUtils.metersToKilometers(500)).isWithin(0).of(0.500);%0A        assertThat(UnitUtils.metersToKilometers(1000)).isWithin(0).of(1);%0A        assertThat(UnitUtils.metersToKilometers(1500)).isWithin(0).of(1.5);%0A    %7D%0A%0A    @Test%0A    public void metersToMiles_isCorrect() %7B%0A        assertThat(UnitUtils.metersToMiles(0)).isWithin(0).of(0);%0A        assertThat(UnitUtils.metersToMiles(804.672)).isWithin(0.1).of(0.5);%0A        assertThat(UnitUtils.metersToMiles(1609.34)).isWithin(0.1).of(1);%0A        assertThat(UnitUtils.metersToMiles(3218.69)).isWithin(0.1).of(2);%0A    %7D%0A%0A    @Test%0A    public void milesToFeet_isCorrect() %7B%0A        assertThat(UnitUtils.milesToFeet(1)).isWithin(0).of(5280);%0A        assertThat(UnitUtils.milesToFeet(0.5)).isWithin(0).of(2640);%0A        assertThat(UnitUtils.milesToFeet(0)).isWithin(0).of(0);%0A        assertThat(UnitUtils.milesToFeet(3)).isWithin(0).of(15840);%0A    %7D
 %0A%7D%0A

Add UnitUtils unit tests