Skip to content

Commit 8c3e46c

Browse files
committed
test_tools : rid off cyclic dependcy wip
1 parent eaa0cd1 commit 8c3e46c

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

module/core/collection_tools/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ pub use own::*;
3737
#[ allow( unused_imports ) ]
3838
pub mod own
3939
{
40-
use super::*;
40+
// use super::*;
4141

4242
#[ doc( inline ) ]
43-
pub use orphan::*;
43+
pub use super::orphan::*;
4444

4545
#[ doc( inline ) ]
46-
pub use collection::own::*;
46+
pub use super::collection::own::*;
4747

4848
}
4949

@@ -88,6 +88,7 @@ pub mod prelude
8888

8989
}
9090

91+
// pub use own::collection as xxx;
9192
// pub use hmap as xxx;
9293
// pub use own::HashMap as xxx;
9394
// pub fn x()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#[ allow( unused_imports ) ]
2+
use super::*;
3+
4+
#[ test ]
5+
fn basic()
6+
{
7+
8+
use the_module::own::*;
9+
let _v : Vec< u32 > = collection::Vec::new();
10+
let _v : Vec< u32 > = the_module::collection::Vec::new();
11+
let _v : Vec< u32 > = the_module::own::collection::Vec::new();
12+
13+
}

module/core/collection_tools/tests/inc/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ mod llist;
99
mod vec;
1010
mod deque;
1111

12+
mod basic;
1213
mod components;
1314

1415
// qqq : make subdirectory for each container -- done

module/move/willbe/tests/inc/tool/graph_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use super::*;
33
// qqq : for Bohdan : bad. don't import the_module::*
44
// use the_module::*;
55
use the_module::graph::toposort;
6-
use collection::HashMap;
6+
use test_tools::collection::HashMap;
77
use petgraph::Graph;
88
use willbe::graph::topological_sort_with_grouping;
99

0 commit comments

Comments
 (0)