Changeset 3479 in josm for trunk/test


Ignore:
Timestamp:
2010-08-29T14:55:25+02:00 (11 years ago)
Author:
jttt
Message:

cosmetics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/projection/SwissGridTest.java

    r3473 r3479  
    2020     */
    2121    ProjData[] data = {
    22         new ProjData("Zimmerwald",      d(7,27,54.983506), d(46,52,37.540562), 947.149, 602030.680, 191775.030, 897.915),
    23         new ProjData("Chrischona",      d(7,40,6.983077), d(47,34, 1.385301), 504.935,  617306.300, 268507.300, 456.064),
    24         new ProjData("Pfaender",        d(9,47,3.697723), d(47,30,55.172797), 1089.372, 776668.105, 265372.681, 1042.624),
    25         new ProjData("La Givrine",      d(6,6,7.326361), d(46,27,14.690021), 1258.274,  497313.292, 145625.438, 1207.434),
    26         new ProjData("Monte Generoso",  d(9,1,16.389053), d(45,55,45.438020), 1685.027, 722758.810, 87649.670, 1636.600) };
     22            new ProjData("Zimmerwald",      d(7,27,54.983506), d(46,52,37.540562), 947.149, 602030.680, 191775.030, 897.915),
     23            new ProjData("Chrischona",      d(7,40,6.983077), d(47,34, 1.385301), 504.935,  617306.300, 268507.300, 456.064),
     24            new ProjData("Pfaender",        d(9,47,3.697723), d(47,30,55.172797), 1089.372, 776668.105, 265372.681, 1042.624),
     25            new ProjData("La Givrine",      d(6,6,7.326361), d(46,27,14.690021), 1258.274,  497313.292, 145625.438, 1207.434),
     26            new ProjData("Monte Generoso",  d(9,1,16.389053), d(45,55,45.438020), 1685.027, 722758.810, 87649.670, 1636.600) };
    2727
    2828    private double d(double deg, double min, double sec) {
    2929        return deg + min / 60. + sec / 3600.;
    3030    }
    31    
    32     private class ProjData {
     31
     32    private static class ProjData {
    3333        public String name;
    3434        public LatLon ll;
     
    5252        }
    5353        assertTrue(errs, errs.length() == 0);
    54     }       
     54    }
    5555
    5656    @Test
     
    130130            assertTrue("Berne", Math.abs(ll.lon() - (7.0 + 26.0 / 60 + 19.076595154147 / 3600)) < 0.00001);
    131131        }
    132        
     132
    133133        {
    134134            EastNorth en = new EastNorth(700000.0, 100000.0);
     
    142142
    143143    /**
    144      * Send and return should have less than 2mm of difference. 
     144     * Send and return should have less than 2mm of difference.
    145145     */
    146146    @Test
     
    185185            assertTrue("Berne", Math.abs(en.north() - en2.north()) < 0.002);
    186186        }
    187        
     187
    188188        {
    189189            EastNorth en = new EastNorth(700000.0, 100000.0);
Note: See TracChangeset for help on using the changeset viewer.