about summary refs log tree commit diff
path: root/src/libstd/rand
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-12-20 01:12:56 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2013-12-20 01:26:03 +1100
commitc00104f36a1dd6aad318d410ffa41b9ec531880a (patch)
tree2e317d3960f021384faa3f8ae7f19a9eed1ac849 /src/libstd/rand
parentb3cee6203457b98c030a8597f97b037a8d447f40 (diff)
downloadrust-c00104f36a1dd6aad318d410ffa41b9ec531880a.tar.gz
rust-c00104f36a1dd6aad318d410ffa41b9ec531880a.zip
std: silence warnings when compiling test.
Diffstat (limited to 'src/libstd/rand')
-rw-r--r--src/libstd/rand/rand_impls.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/rand/rand_impls.rs b/src/libstd/rand/rand_impls.rs
index ff722b739a8..360f16971ac 100644
--- a/src/libstd/rand/rand_impls.rs
+++ b/src/libstd/rand/rand_impls.rs
@@ -240,12 +240,14 @@ mod tests {
         }
     }
 
+    #[test]
     fn floating_point_edge_cases() {
         // the test for exact equality is correct here.
         assert!(ConstantRng(0xffff_ffff).gen::<f32>() != 1.0)
         assert!(ConstantRng(0xffff_ffff_ffff_ffff).gen::<f64>() != 1.0)
     }
 
+    #[test]
     fn rand_open() {
         // this is unlikely to catch an incorrect implementation that
         // generates exactly 0 or 1, but it keeps it sane.
@@ -260,6 +262,7 @@ mod tests {
         }
     }
 
+    #[test]
     fn rand_closed() {
         let mut rng = task_rng();
         for _ in range(0, 1_000) {