File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -6,22 +6,19 @@ import std::vec;
6
6
7
7
#[ test]
8
8
fn do_not_run_ignored_tests ( ) {
9
- /*let ran = @mutable false;
10
- let f = bind fn (ran: @mutable bool) { *ran = true; }(ran);
11
-
9
+ fn f ( ) { fail; }
12
10
let desc = { name: "whatever" , fn : f, ignore: true } ;
13
-
14
- test::run_test(desc, test::default_test_to_task);
15
-
16
- assert (*ran == false);*/
11
+ let future = test:: run_test ( desc, test:: default_test_to_task) ;
12
+ let result = future. wait ( ) ;
13
+ assert result != test:: tr_ok;
17
14
}
18
15
19
16
#[ test]
20
17
fn ignored_tests_result_in_ignored ( ) {
21
- /* fn f() { }
18
+ fn f ( ) { }
22
19
let desc = { name: "whatever" , fn : f, ignore: true } ;
23
20
let res = test:: run_test ( desc, test:: default_test_to_task) . wait ( ) ;
24
- assert (res == test::tr_ignored);*/
21
+ assert ( res == test:: tr_ignored) ;
25
22
}
26
23
27
24
#[ test]
You can’t perform that action at this time.
0 commit comments