bryan-emmanuel / javageomodel

Automatically exported from code.google.com/p/javageomodel
0 stars 0 forks source link

iUnitTest fails - a bug in the Point Validate conditions. #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The Validate conditions test the success as:

       Validate.isTrue(lat > 90.0 || lat < -90.0, "Latitude must be in
[-90, 90] but was ", lat);
        Validate.isTrue(lon > 180.0 || lon < -180.0, "Longitude must be in
[-180, 180] but was ", lon);

This, however, should be:

        Validate.isTrue( -90.0d <= lat && lat <= 90.0d, "Latitude must be
in [-90, 90] but was ", lat);
        Validate.isTrue( -180.0d <= lon && lon <= 1800d, "Longitude must be
in [-180, 180] but was ", lon);

Original issue reported on code.google.com by yoichi.t...@gmail.com on 31 May 2010 at 7:07

GoogleCodeExporter commented 8 years ago
Oops, this has been reported already.

Sorry!

Original comment by yoichi.t...@gmail.com on 31 May 2010 at 7:09

GoogleCodeExporter commented 8 years ago

Original comment by edgar.da...@gmail.com on 5 Nov 2010 at 10:12