Skip to content

Commit

Permalink
test_tools : rid off cyclic dependcy wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Nov 5, 2024
1 parent eaa0cd1 commit 8c3e46c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
7 changes: 4 additions & 3 deletions module/core/collection_tools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ pub use own::*;
#[ allow( unused_imports ) ]
pub mod own
{
use super::*;
// use super::*;

#[ doc( inline ) ]
pub use orphan::*;
pub use super::orphan::*;

#[ doc( inline ) ]
pub use collection::own::*;
pub use super::collection::own::*;

}

Expand Down Expand Up @@ -88,6 +88,7 @@ pub mod prelude

}

// pub use own::collection as xxx;
// pub use hmap as xxx;
// pub use own::HashMap as xxx;
// pub fn x()
Expand Down
13 changes: 13 additions & 0 deletions module/core/collection_tools/tests/inc/basic.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#[ allow( unused_imports ) ]
use super::*;

#[ test ]
fn basic()
{

use the_module::own::*;
let _v : Vec< u32 > = collection::Vec::new();
let _v : Vec< u32 > = the_module::collection::Vec::new();
let _v : Vec< u32 > = the_module::own::collection::Vec::new();

}
1 change: 1 addition & 0 deletions module/core/collection_tools/tests/inc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ mod llist;
mod vec;
mod deque;

mod basic;
mod components;

// qqq : make subdirectory for each container -- done
Expand Down
2 changes: 1 addition & 1 deletion module/move/willbe/tests/inc/tool/graph_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use super::*;
// qqq : for Bohdan : bad. don't import the_module::*
// use the_module::*;
use the_module::graph::toposort;
use collection::HashMap;
use test_tools::collection::HashMap;
use petgraph::Graph;
use willbe::graph::topological_sort_with_grouping;

Expand Down

0 comments on commit 8c3e46c

Please sign in to comment.