Skip to content

Commit

Permalink
test long location
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh committed Sep 22, 2023
1 parent 667ac5e commit cee82bc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,23 @@ mod tests {
serde_json_core::from_slice::<res::Time>(r).unwrap();
}

#[test]
fn test_card_time_sa() {
let r = br##"
{
"time": 1599769214,
"area": "Kommetjie Western Cape",
"zone": "Africa/Johannesburg",
"minutes": -300,
"lat": 42.5776,
"lon": -70.87134,
"country": "ZA"
}
"##;

serde_json_core::from_slice::<res::Time>(r).unwrap();
}

#[test]
fn test_card_time_err() {
let r = br##"{"err":"time is not yet set","zone":"UTC,Unknown"}"##;
Expand Down

0 comments on commit cee82bc

Please sign in to comment.