summaryrefslogtreecommitdiffstats
path: root/tests/parse_es_requests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parse_es_requests.rs')
-rw-r--r--tests/parse_es_requests.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/parse_es_requests.rs b/tests/parse_es_requests.rs
index d453392..8e84148 100644
--- a/tests/parse_es_requests.rs
+++ b/tests/parse_es_requests.rs
@@ -36,7 +36,9 @@ fn parse_search_bodies() {
if let Some(body) = parts.body {
println!("parsing: {}", path.display());
println!("BODY: {}", body);
- let _parsed: SearchBody = serde_json::from_str(&body).unwrap();
+ let parsed: SearchBody = serde_json::from_str(&body).unwrap();
+ let raw_val: serde_json::Value = serde_json::from_str(&body).unwrap();
+ assert_eq!(raw_val, serde_json::to_value(parsed).unwrap());
}
}
}