Format and fix tests
This commit is contained in:
parent
021ac810e4
commit
57d83a349d
@ -4,10 +4,10 @@ use std::str::FromStr;
|
||||
|
||||
use crate::{
|
||||
dd,
|
||||
ddmmss,
|
||||
dmm,
|
||||
dms,
|
||||
plus, //xpin
|
||||
ddmmss,
|
||||
utm,
|
||||
Coordinate,
|
||||
Error,
|
||||
|
@ -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
|
||||
)
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user