Skip to content

Commit

Permalink
Fix: Include conditional compilation for the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
davenza committed Oct 4, 2018
1 parent cf752f4 commit cce14bc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions tests/add_edges_stable.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(feature = "stable_dag")]
extern crate daggy;

use daggy::WouldCycle;
Expand Down
1 change: 1 addition & 0 deletions tests/iterators_stable.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(feature = "stable_dag")]
extern crate daggy;

use daggy::stabledag::{StableDag, Walker};
Expand Down
7 changes: 2 additions & 5 deletions tests/stable_indices.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#![cfg(feature = "stable_dag")]
extern crate daggy;

use daggy::stabledag::StableDag;


#[test]
pub fn remove_nodes() {
let mut dag = StableDag::<u32, u32, u32>::new();
Expand All @@ -12,16 +12,13 @@ pub fn remove_nodes() {
let c = dag.add_node(3);

dag.remove_node(b);



assert_eq!(Some(&0), dag.node_weight(root));
assert_eq!(Some(&1), dag.node_weight(a));
assert_eq!(None, dag.node_weight(b));
assert_eq!(Some(&3), dag.node_weight(c));

}


#[test]
fn remove_edges() {
let mut dag = StableDag::<u32, u32, u32>::new();
Expand Down
1 change: 1 addition & 0 deletions tests/walkers_stable.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(feature = "stable_dag")]
extern crate daggy;

use daggy::stabledag::{StableDag, Walker};
Expand Down

0 comments on commit cce14bc

Please sign in to comment.