Skip to content

Commit db05188

Browse files
committed
Add ignored test and TODO for (smt) equality of floating point
1 parent 6211d62 commit db05188

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

verify/rust_verify/tests/common/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ pub fn verify_with_pervasive(
9797

9898
#[macro_export]
9999
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])*
102102
fn $name() {
103103
let result = verify_with_pervasive($body);
104104
if let $result = result {
@@ -108,8 +108,8 @@ macro_rules! test_verify_with_pervasive {
108108
}
109109
}
110110
};
111-
(#[test] $name:ident $body:expr => $result:pat) => {
112-
#[test]
111+
($(#[$attrs:meta])* $name:ident $body:expr => $result:pat) => {
112+
$(#[$attrs])*
113113
fn $name() {
114114
let result = verify_with_pervasive($body);
115115
if let $result = result {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
}

0 commit comments

Comments
 (0)