about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authordjzin <noreply@github.com>2016-12-24 23:45:30 +0000
committerdjzin <noreply@github.com>2017-01-14 16:51:51 +0000
commit95bef0d5d7cbbc1e40fc22b6189bbff303406a98 (patch)
treeb1339c9a2e48704bf60c671c059e7d901334f396 /src
parentd5f1f5bc2596f9f6c2726b04189275ac6adc7133 (diff)
downloadrust-95bef0d5d7cbbc1e40fc22b6189bbff303406a98.tar.gz
rust-95bef0d5d7cbbc1e40fc22b6189bbff303406a98.zip
use str range for string btreemap in test
Diffstat (limited to 'src')
-rw-r--r--src/libcollectionstest/btree/map.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollectionstest/btree/map.rs b/src/libcollectionstest/btree/map.rs
index 59201a0c23a..44bdf6f7fbf 100644
--- a/src/libcollectionstest/btree/map.rs
+++ b/src/libcollectionstest/btree/map.rs
@@ -208,8 +208,8 @@ fn test_range_borrowed_key() {
     map.insert("baboon".to_string(), 2);
     map.insert("coyote".to_string(), 3);
     map.insert("dingo".to_string(), 4);
-    // NOTE: would like to use simply "a".."d" here...
-    let mut iter = map.range("b".to_string().."d".to_string());
+    // NOTE: would like to use simply "b".."d" here...
+    let mut iter = map.range::<str, _>((Included("b"),Excluded("d")));
     assert_eq!(iter.next(), Some((&"baboon".to_string(), &2)));
     assert_eq!(iter.next(), Some((&"coyote".to_string(), &3)));
     assert_eq!(iter.next(), None);