wthr 0.1.0

Weather from the US National Weather Service.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use wthr::forecast::GridpointData;

mod common;
use common::json;

#[test]
fn use_geojson_geometry_type() {
    let data = json("gridpoint_data");
    let parsed: GridpointData = serde_json::from_str(&data).unwrap();
    match parsed.geometry.value {
        geojson::Value::Polygon(poly) => assert_eq!(poly[0].len(), 5),
        _ => panic!(),
    }
}