File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
1
use rand:: { SeedableRng , FromEntropy , Rng , rngs:: SmallRng } ;
2
2
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).
3
5
#[ test]
4
6
fn simple ( ) {
5
7
assert_eq ! ( 4 , 4 ) ;
6
8
}
7
9
8
10
// Having more than 1 test does seem to make a difference
9
11
// (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
-
18
12
#[ test]
19
13
fn entropy_rng ( ) {
20
14
// Use this opportunity to test querying the RNG (needs an external crate, hence tested here and not in the compiletest suite)
You can’t perform that action at this time.
0 commit comments