summaryrefslogtreecommitdiffstats
path: root/tests/get.rs
diff options
context:
space:
mode:
authorCaleb Maclennan <caleb@alerque.com>2021-03-28 10:59:58 +0300
committerCaleb Maclennan <caleb@alerque.com>2021-03-28 20:15:08 +0300
commit7687476f9b3b478e17e72a63b2a45d12d92e348d (patch)
tree84a1ef8450f48f199e97131a75a9240910193318 /tests/get.rs
parent225005994d46e634918568b9013cfae82c491a8a (diff)
Rename get_str() → get_string() to match returned type
Diffstat (limited to 'tests/get.rs')
-rw-r--r--tests/get.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/get.rs b/tests/get.rs
index 10ec066..8d6db51 100644
--- a/tests/get.rs
+++ b/tests/get.rs
@@ -111,7 +111,7 @@ fn test_map() {
assert_eq!(m.len(), 8);
assert_eq!(
- m["name"].clone().into_str().unwrap(),
+ m["name"].clone().into_string().unwrap(),
"Torre di Pisa".to_string()
);
assert_eq!(m["reviews"].clone().into_int().unwrap(), 3866);
@@ -138,7 +138,7 @@ fn test_map_struct() {
assert_eq!(s.place.len(), 8);
assert_eq!(
- s.place["name"].clone().into_str().unwrap(),
+ s.place["name"].clone().into_string().unwrap(),
"Torre di Pisa".to_string()
);
assert_eq!(s.place["reviews"].clone().into_int().unwrap(), 3866);