use std::str::FromStr; use this_algorithm::Address; mod common; #[test] fn test_v0() { t("grape orange apple 1000"); t("1000 apple orange grape"); t("\t\tgrape\n\t orange apple 1000 \t "); t("\n1000 APPlE oRAnGE GrAPe\n"); for i in 0..100 { ll(37.55512 + f64::from(i) * 0.00001, -76.89212); } assert!(false); } fn ll(lat: f64, lon: f64) { eprintln!("{lat}, {lon} =>\t{}", Address::from_lat_lon(lat, lon)); } fn t(s: &str) { eprintln!("{:?}", Address::from_str(s)); } // #[test] // fn test_address() { // let addr = Address { // number: 1234, // }; // assert_eq!( // (Word { // word: "asdf", // number: 0, // }) // .to_string(), // "asdf" // ); // }