aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-22 08:55:14 +0100
committerMartin Fischer <martin@push-f.com>2021-11-22 09:21:02 +0100
commitef698909223b2f29f7a6cae17f0aba3461c8803d (patch)
tree5f91a28cf98b6742c899bf515e99fcb8f89261ff /tests/tests.rs
parent19823e09b7fe5e6a5b3965c7096c9daba18ce028 (diff)
support HashMap and BTreeMap
Diffstat (limited to 'tests/tests.rs')
-rw-r--r--tests/tests.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index e004d61..925fe72 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -204,7 +204,7 @@ fn test3<T: TypeWithSuper>(some: T) {
println!("{}", dyn_trait);
}
-use std::collections::{BTreeSet, BinaryHeap, HashSet, LinkedList, VecDeque};
+use std::collections::{BTreeMap, BTreeSet, BinaryHeap, HashMap, HashSet, LinkedList, VecDeque};
#[dynamize::dynamize]
trait Collections {
@@ -228,6 +228,10 @@ trait CollectionsRequiringEq {
fn binary_heap(&self) -> BinaryHeap<Self::A>;
fn btree_set(&self) -> BTreeSet<Self::A>;
+
+ fn hash_map(&self) -> HashMap<Self::A, Self::A>;
+
+ fn btree_map(&self) -> BTreeMap<Self::A, Self::A>;
}
#[dynamize::dynamize]