Skip to content

Commit

Permalink
Added unit test for negative lat long coordinates in position.rs.
Browse files Browse the repository at this point in the history
  • Loading branch information
RRArny committed Nov 24, 2024
1 parent 5161bf5 commit b603071
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,12 @@ mod test {
let actual = latlon.to_string();
assert_eq!(expected, actual);
}

#[tokio::test]
async fn test_display_latlong_neg() {
let latlon = LatLong(-51.4, -8.5);
let expected = "-51.4,-8.5";
let actual = latlon.to_string();
assert_eq!(expected, actual);
}
}

0 comments on commit b603071

Please sign in to comment.