From 57d83a349d935e4281b9793e44840cb40f533c80 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Wed, 26 Apr 2023 23:32:29 -0400 Subject: [PATCH] Format and fix tests --- spatial-coordinate-systems/src/all.rs | 2 +- spatial-coordinate-systems/src/ddmmss.rs | 3 +-- spatial-coordinate-systems/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/spatial-coordinate-systems/src/all.rs b/spatial-coordinate-systems/src/all.rs index 465481e..a0eddc6 100644 --- a/spatial-coordinate-systems/src/all.rs +++ b/spatial-coordinate-systems/src/all.rs @@ -4,10 +4,10 @@ use std::str::FromStr; use crate::{ dd, + ddmmss, dmm, dms, plus, //xpin - ddmmss, utm, Coordinate, Error, diff --git a/spatial-coordinate-systems/src/ddmmss.rs b/spatial-coordinate-systems/src/ddmmss.rs index a0635fb..52ca6d7 100644 --- a/spatial-coordinate-systems/src/ddmmss.rs +++ b/spatial-coordinate-systems/src/ddmmss.rs @@ -169,9 +169,8 @@ mod tests { Ok(Coordinate::from(LatLon::new(-90.0_f64, 100.0_f64).unwrap())) ); - // TODO: Are these truncated or rounded? assert_eq!( - Coordinate::from_str("694733N1081419W").unwrap().0, + Coordinate::from_str("694734N1081420W").unwrap().0, Coordinate::from(LatLon::new(69.79268710495744, -108.23886036872865).unwrap()).0 ) } diff --git a/spatial-coordinate-systems/src/lib.rs b/spatial-coordinate-systems/src/lib.rs index fe33c39..26e40ca 100644 --- a/spatial-coordinate-systems/src/lib.rs +++ b/spatial-coordinate-systems/src/lib.rs @@ -2,11 +2,11 @@ use std::{fmt, str::FromStr}; pub mod all; mod common; pub mod dd; +pub mod ddmmss; pub mod dmm; pub mod dms; pub mod latlon; pub mod plus; -pub mod ddmmss; pub mod urls; pub mod utm; pub use error::Error;