File tree 2 files changed +17
-4
lines changed 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,8 @@ pub fn verify_with_pervasive(
97
97
98
98
#[ macro_export]
99
99
macro_rules! test_verify_with_pervasive {
100
- ( # [ test ] $name: ident $body: expr => $result: pat => $assertions: expr ) => {
101
- # [ test ]
100
+ ( $ ( # [ $attrs : meta ] ) * $name: ident $body: expr => $result: pat => $assertions: expr ) => {
101
+ $ ( # [ $attrs ] ) *
102
102
fn $name( ) {
103
103
let result = verify_with_pervasive( $body) ;
104
104
if let $result = result {
@@ -108,8 +108,8 @@ macro_rules! test_verify_with_pervasive {
108
108
}
109
109
}
110
110
} ;
111
- ( # [ test ] $name: ident $body: expr => $result: pat) => {
112
- # [ test ]
111
+ ( $ ( # [ $attrs : meta ] ) * $name: ident $body: expr => $result: pat) => {
112
+ $ ( # [ $attrs ] ) *
113
113
fn $name( ) {
114
114
let result = verify_with_pervasive( $body) ;
115
115
if let $result = result {
Original file line number Diff line number Diff line change
1
+ #![ feature( rustc_private) ]
2
+ #[ macro_use]
3
+ mod common;
4
+ use common:: * ;
5
+
6
+ test_verify_with_pervasive ! {
7
+ // TODO: SOUNDNESS; when the `f64::NAN` expression is supported, this may be unsound
8
+ #[ test] #[ ignore] test_float_nan code! {
9
+ fn float_nan( ) {
10
+ assert( f64 :: NAN != f64 :: NAN ) ;
11
+ }
12
+ } => Ok ( ( ) )
13
+ }
You can’t perform that action at this time.
0 commit comments