wilayah 0.6.1

Location lookup for Indonesian villages by GPS coordinates or name
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use wilayah::{version, AdminLevel};

#[test]
fn test_version() {
    assert_eq!(version(), env!("CARGO_PKG_VERSION"));
}

#[test]
fn test_admin_level_display() {
    let level = AdminLevel {
        code: "31.71".into(),
        name: "Jakarta".into(),
    };
    assert_eq!(format!("{level}"), "31.71 Jakarta");
}