Skip to content

Commit

Permalink
Explicitly test that [pub] works in prop_compose!.
Browse files Browse the repository at this point in the history
Since the question came up again in
#10
  • Loading branch information
AltSysrq committed Apr 16, 2018
1 parent 480674b commit 1c8b79c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sugar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1018,3 +1018,14 @@ mod test {
]));
}
}

#[cfg(test)]
mod another_test {
use sugar;

// Ensure that we can access the `[pub]` composed function above.
#[allow(dead_code)]
fn can_access_pub_compose() {
let _ = sugar::test::two_ints_pub(42);
}
}

0 comments on commit 1c8b79c

Please sign in to comment.