Skip to content

Commit

Permalink
global-positioning-system: fix tests and instructions (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Oct 9, 2024
1 parent 50d2eb7 commit a974124
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ These are the allowed values for each individual component:
- `<LONGITUDE_DEGREES>`: a floating-point number in the range 0..180 (inclusive)
- `<LONGITUDE_HEMISPHERE>`: either `E` or `W`

For example, `"48.8584 N 2.2945 E"` parses into:
For example, `"48.8584 N, 2.2945 E"` parses into:

- `<LATITUDE_DEGREES>`: 48.8584
- `<LATITUDE_HEMISPHERE>`: N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ pending :-
string_codes("143.889", Codes),
phrase(longitude(_, _), Codes).

test(coordinate_parses_coordinate, [fail, condition(pending)]) :-
string_codes("48.8584 N 2.2945 E", Codes),
test(coordinate_parses_coordinate, condition(pending)) :-
string_codes("48.8584 N, 2.2945 E", Codes),
phrase(coordinate(Latitude, LatitudeHemisphere, Longitude, LongitudeHemisphere), Codes),
Latitude =:= 48.8584,
LatitudeHemisphere == north,
Expand Down

0 comments on commit a974124

Please sign in to comment.