Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrubeck committed Jul 1, 2024
1 parent ce43e95 commit d76512a
Showing 1 changed file with 39 additions and 16 deletions.
55 changes: 39 additions & 16 deletions tests/evil.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use std::num::FpCategory;
use std::ops::{Add, Div, Mul, Neg, Rem, Sub};
use num_traits::float::FloatCore;
use num_traits::{Num, NumCast, One, ToPrimitive, Zero};
use ordered_float::{NotNan};
use ordered_float::NotNan;
use std::num::FpCategory;
use std::ops::{Add, Div, Mul, Neg, Rem, Sub};

#[derive(PartialOrd, PartialEq)]
struct EvilFloat(f32);
Expand Down Expand Up @@ -99,19 +99,42 @@ impl FloatCore for EvilFloat {
fn is_nan(self) -> bool {
false
}
fn infinity() -> Self { todo!() }
fn neg_infinity() -> Self { todo!() }
fn nan() -> Self { todo!() }
fn neg_zero() -> Self { todo!() }
fn min_value() -> Self { todo!() }
fn min_positive_value() -> Self { todo!() }
fn epsilon() -> Self { todo!() }
fn max_value() -> Self { todo!() }
fn classify(self) -> FpCategory { todo!() }
fn to_degrees(self) -> Self { todo!() }
fn to_radians(self) -> Self { todo!() }
fn integer_decode(self) -> (u64, i16, i8) { todo!() }

fn infinity() -> Self {
todo!()
}
fn neg_infinity() -> Self {
todo!()
}
fn nan() -> Self {
todo!()
}
fn neg_zero() -> Self {
todo!()
}
fn min_value() -> Self {
todo!()
}
fn min_positive_value() -> Self {
todo!()
}
fn epsilon() -> Self {
todo!()
}
fn max_value() -> Self {
todo!()
}
fn classify(self) -> FpCategory {
todo!()
}
fn to_degrees(self) -> Self {
todo!()
}
fn to_radians(self) -> Self {
todo!()
}
fn integer_decode(self) -> (u64, i16, i8) {
todo!()
}
}

impl Num for EvilFloat {
Expand Down

0 comments on commit d76512a

Please sign in to comment.