diff --git a/src/client.rs b/src/client.rs index 451893d..6cda26c 100644 --- a/src/client.rs +++ b/src/client.rs @@ -331,3 +331,9 @@ pub async fn json(path: String, quarantine: bool) -> Result { Err(e) => err("Couldn't send request to Reddit", e), } } + +#[tokio::test(flavor = "multi_thread", worker_threads = 1)] +async fn test_localization_popular() { + let val = json("/r/popular/hot.json?&raw_json=1&geo_filter=GLOBAL".to_string(), false).await.unwrap(); + assert_eq!("GLOBAL", val["data"]["geo_filter"].as_str().unwrap()); +}