Skip to content

Commit

Permalink
[tests] Give the CGImagePropertiesGPSTest some latitude with the coor…
Browse files Browse the repository at this point in the history
…dinates. (#18375)

Seems like the actual values on device might be ever so slightly off.
  • Loading branch information
rolfbjarne authored Jun 2, 2023
1 parent 9e14229 commit 7198886
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/monotouch-test/CoreGraphics/CGImagePropertiesGPSTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public void LongitudeRefAndLatitudeRefTest ()
using (var url = NSUrl.FromFilename (file))
using (var ci = CIImage.FromUrl (url)) {
var gps = ci.Properties.Gps;
Assert.AreEqual (expectedLatitude, gps.Latitude, "Invalid or no Latitude value found.");
Assert.AreEqual (expectedLongitude, gps.Longitude, "Invalid or no Longitude value found.");
Assert.AreEqual (expectedLatitude, gps.Latitude, 0.0001f, "Invalid or no Latitude value found.");
Assert.AreEqual (expectedLongitude, gps.Longitude, 0.0001f, "Invalid or no Longitude value found.");
Assert.AreEqual (expectedLatitudeRef, gps.LatitudeRef, "Invalid or no LatitudeRef value found.");
Assert.AreEqual (expectedLongitudeRef, gps.LongitudeRef, "Invalid or no LongitudeRef value found.");
}
Expand Down

6 comments on commit 7198886

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.