Skip to content

Commit 3618992

Browse files
committed
deduplicate tests
1 parent b9517ca commit 3618992

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test-cargo-miri/tests/test.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
use rand::{SeedableRng, FromEntropy, Rng, rngs::SmallRng};
22

3+
// Having more than 1 test does seem to make a difference
4+
// (i.e., this calls ptr::swap which having just one test does not).
35
#[test]
46
fn simple() {
57
assert_eq!(4, 4);
68
}
79

810
// Having more than 1 test does seem to make a difference
911
// (i.e., this calls ptr::swap which having just one test does not).
10-
#[test]
11-
fn fixed_rng() {
12-
let mut rng = rand::rngs::StdRng::seed_from_u64(0xdeadcafe);
13-
let x: u32 = rng.gen();
14-
let y: u32 = rng.gen();
15-
assert_ne!(x, y);
16-
}
17-
1812
#[test]
1913
fn entropy_rng() {
2014
// Use this opportunity to test querying the RNG (needs an external crate, hence tested here and not in the compiletest suite)

0 commit comments

Comments
 (0)