M11: tests: GPS coordinates need seconds or a minute fraction, and whole degrees (6.6.2.3.1)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
This commit is contained in:
mtlcl410andClaude Opus 5.5 committed 2026-11-05 12:11:49 +08:00
1 parent cdea50daac
commit a67a5c8d35
1 file changed
+1 -1
+1 -1
View File
@@ -704,7 +704,7 @@ fn xmp_exif_schemas_have_their_value_types() {
for good in ["51,30,26N", "0,5.25W", "120,5,0E", "8,0.000001S"] {
assert!(element("exif:GPSLatitude", good).is_empty(), "{good}");
}
for bad in ["51.5N", "51,30,26", "51,30.N", "51,30,26X", "N", "51,30,2.6N", "a,30,26N"] {
for bad in ["51.5N", "51,30,26", "51,30.N", "51,30,26X", "N", "51,30,2.6N", "a,30,26N", "51,30N", "51.5,30,26N"] {
assert_eq!(element("exif:GPSLatitude", bad), ["exif:GPSLatitude"], "{bad}");
}
assert!(element("exif:GPSTimeStamp", "2016-02-01T13:19:21").is_empty());