Skip to content

Commit cce14bc

Browse files
committed
Fix: Include conditional compilation for the tests.
1 parent cf752f4 commit cce14bc

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/add_edges_stable.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![cfg(feature = "stable_dag")]
12
extern crate daggy;
23

34
use daggy::WouldCycle;

tests/iterators_stable.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![cfg(feature = "stable_dag")]
12
extern crate daggy;
23

34
use daggy::stabledag::{StableDag, Walker};

tests/stable_indices.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
#![cfg(feature = "stable_dag")]
12
extern crate daggy;
23

34
use daggy::stabledag::StableDag;
45

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

1414
dag.remove_node(b);
15-
16-
15+
1716
assert_eq!(Some(&0), dag.node_weight(root));
1817
assert_eq!(Some(&1), dag.node_weight(a));
1918
assert_eq!(None, dag.node_weight(b));
2019
assert_eq!(Some(&3), dag.node_weight(c));
21-
2220
}
2321

24-
2522
#[test]
2623
fn remove_edges() {
2724
let mut dag = StableDag::<u32, u32, u32>::new();

tests/walkers_stable.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![cfg(feature = "stable_dag")]
12
extern crate daggy;
23

34
use daggy::stabledag::{StableDag, Walker};

0 commit comments

Comments
 (0)