Kaynağa Gözat

Update rustc-test to 0.2, fix #371

Simon Sapin 9 yıl önce
ebeveyn
işleme
6d2411fe3a
4 değiştirilmiş dosya ile 4 ekleme ve 12 silme
  1. 1 1
      Cargo.toml
  2. 1 1
      idna/Cargo.toml
  3. 1 5
      idna/tests/tests.rs
  4. 1 5
      tests/data.rs

+ 1 - 1
Cargo.toml

@@ -31,7 +31,7 @@ harness = false
 test = false
 
 [dev-dependencies]
-rustc-test = "0.1"
+rustc-test = "0.2"
 rustc-serialize = "0.3"
 serde_json = ">=0.6.1, <0.9"
 

+ 1 - 1
idna/Cargo.toml

@@ -18,7 +18,7 @@ harness = false
 name = "unit"
 
 [dev-dependencies]
-rustc-test = "0.1"
+rustc-test = "0.2"
 rustc-serialize = "0.3"
 
 [dependencies]

+ 1 - 5
idna/tests/tests.rs

@@ -10,11 +10,7 @@ fn main() {
     {
         let mut add_test = |name, run| {
             tests.push(test::TestDescAndFn {
-                desc: test::TestDesc {
-                    name: test::DynTestName(name),
-                    ignore: false,
-                    should_panic: test::ShouldPanic::No,
-                },
+                desc: test::TestDesc::new(test::DynTestName(name)),
                 testfn: run,
             })
         };

+ 1 - 5
tests/data.rs

@@ -188,11 +188,7 @@ fn main() {
     {
         let mut add_one = |name: String, run: test::TestFn| {
             tests.push(test::TestDescAndFn {
-                desc: test::TestDesc {
-                    name: test::DynTestName(name),
-                    ignore: false,
-                    should_panic: test::ShouldPanic::No,
-                },
+                desc: test::TestDesc::new(test::DynTestName(name)),
                 testfn: run,
             })
         };