[Mercator] Minor fix
This commit is contained in:
parent
e90545f3b7
commit
d66c39b207
@ -6,14 +6,14 @@ import org.junit.Test;
|
|||||||
public class EllipticalMercatorUnitTest {
|
public class EllipticalMercatorUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void giventThatTheInputIs22_whenXAxisProjectionIsCalled_thenTheResultIsTheCorrectOne() {
|
public void givenThatTheInputIs22_whenXAxisProjectionIsCalled_thenTheResultIsTheCorrectOne() {
|
||||||
Mercator mercator = new EllipticalMercator();
|
Mercator mercator = new EllipticalMercator();
|
||||||
double result = mercator.xAxisProjection(22);
|
double result = mercator.xAxisProjection(22);
|
||||||
assert result == 2449028.7974520186;
|
assert result == 2449028.7974520186;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void giventThatTheInputIs44_whenYAxisProjectionIsCalled_thenTheResultIsTheCorrectOne() {
|
public void givenThatTheInputIs44_whenYAxisProjectionIsCalled_thenTheResultIsTheCorrectOne() {
|
||||||
Mercator mercator = new EllipticalMercator();
|
Mercator mercator = new EllipticalMercator();
|
||||||
double result = mercator.yAxisProjection(44);
|
double result = mercator.yAxisProjection(44);
|
||||||
assert result == 5435749.887511954;
|
assert result == 5435749.887511954;
|
||||||
|
@ -6,14 +6,14 @@ import static junit.framework.TestCase.assertEquals;
|
|||||||
public class SphericalMercatorUnitTest {
|
public class SphericalMercatorUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void giventThatTheInputIs22_whenXAxisProjectionIsCalled_thenTheResultIsTheCorrectOne() {
|
public void givenThatTheInputIs22_whenXAxisProjectionIsCalled_thenTheResultIsTheCorrectOne() {
|
||||||
Mercator mercator = new SphericalMercator();
|
Mercator mercator = new SphericalMercator();
|
||||||
double result = mercator.xAxisProjection(22);
|
double result = mercator.xAxisProjection(22);
|
||||||
assert result == 2449028.7974520186;
|
assert result == 2449028.7974520186;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void giventThatTheInputIs44_whenYAxisProjectionIsCalled_thenTheResultIsTheCorrectOne() {
|
public void givenThatTheInputIs44_whenYAxisProjectionIsCalled_thenTheResultIsTheCorrectOne() {
|
||||||
Mercator mercator = new SphericalMercator();
|
Mercator mercator = new SphericalMercator();
|
||||||
double result = mercator.yAxisProjection(44);
|
double result = mercator.yAxisProjection(44);
|
||||||
assert result == 5465442.183322753;
|
assert result == 5465442.183322753;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user