Update components
This commit is contained in:
parent
828ca8f735
commit
3b12d72952
@ -296,6 +296,11 @@ mod tests {
|
||||
assert!(dbg!(Address::from_str("6532 BROADCAST TINY apple")).is_ok());
|
||||
assert!(dbg!(Address::from_str("6532 BROADCAST TINY orange")).is_ok());
|
||||
assert!(dbg!(Address::from_lat_lon(0.0, 0.0)).is_ok());
|
||||
assert!(dbg!(Address::from_lat_lon(
|
||||
69.79268710495744,
|
||||
-108.23886036872865
|
||||
))
|
||||
.is_ok());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -1,3 +1,5 @@
|
||||
use std::str::FromStr;
|
||||
|
||||
use common::test_events;
|
||||
use s2::cellid::CellID;
|
||||
use xpin::Error;
|
||||
|
@ -13,7 +13,7 @@ fn main() {
|
||||
let mut file = BufWriter::new(File::create(path).unwrap());
|
||||
let wordlist_path = "../wordlist/99-wordlist.csv";
|
||||
|
||||
println!("cargo:rerun-if-changed={}", wordlist_path);
|
||||
// println!("cargo:rerun-if-changed={}", wordlist_path);
|
||||
|
||||
let rdr_builder = ReaderBuilder::new();
|
||||
|
||||
|
@ -25,7 +25,7 @@ impl Display for Word<'_> {
|
||||
/// ```rust
|
||||
/// use words::get_number;
|
||||
///
|
||||
/// assert!(get_number("ThE").is_some());
|
||||
/// assert!(get_number("TElescoPE").is_some());
|
||||
/// assert!(get_number("AsDf").is_none());
|
||||
/// ```
|
||||
pub fn get_number<S>(maybe_word: S) -> Option<u16>
|
||||
@ -40,9 +40,9 @@ where
|
||||
/// ```rust
|
||||
/// use words::get_word;
|
||||
///
|
||||
/// assert!(get_word("THE").is_some());
|
||||
/// assert!(get_word("the").is_some());
|
||||
/// assert!(get_word("tHe").is_some());
|
||||
/// assert!(get_word("TELESCOPE").is_some());
|
||||
/// assert!(get_word("TelescopE").is_some());
|
||||
/// assert!(get_word("telescope").is_some());
|
||||
/// assert!(get_word("ASDFASDF").is_none());
|
||||
/// ```
|
||||
pub fn get_word<S>(maybe_word: S) -> Option<&'static Word<'static>>
|
||||
|
Loading…
Reference in New Issue
Block a user