2023-02-24 00:31:32 -05:00
|
|
|
// use std::str::FromStr;
|
|
|
|
// use this_algorithm::Address;
|
2023-02-15 21:16:43 -05:00
|
|
|
mod common;
|
2023-02-24 00:31:32 -05:00
|
|
|
// #[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");
|
2023-02-16 20:01:45 -05:00
|
|
|
|
2023-02-24 00:31:32 -05:00
|
|
|
// 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));
|
|
|
|
// }
|
2023-02-15 21:16:43 -05:00
|
|
|
|
|
|
|
// #[test]
|
|
|
|
// fn test_address() {
|
|
|
|
// let addr = Address {
|
|
|
|
// number: 1234,
|
2023-02-15 21:21:18 -05:00
|
|
|
|
2023-02-15 21:16:43 -05:00
|
|
|
// };
|
|
|
|
// assert_eq!(
|
|
|
|
// (Word {
|
|
|
|
// word: "asdf",
|
|
|
|
// number: 0,
|
|
|
|
// })
|
|
|
|
// .to_string(),
|
|
|
|
// "asdf"
|
|
|
|
// );
|
|
|
|
// }
|