mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
fmt
This commit is contained in:
parent
52d1806e1f
commit
b9b7dc5f6c
2 changed files with 5 additions and 4 deletions
|
@ -25,9 +25,7 @@
|
||||||
// This version has been altered and ported to C++, then to Rust, for inclusion in fish.
|
// This version has been altered and ported to C++, then to Rust, for inclusion in fish.
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
f64::{
|
f64::consts::{E, PI, TAU},
|
||||||
consts::{E, PI, TAU},
|
|
||||||
},
|
|
||||||
fmt::Debug,
|
fmt::Debug,
|
||||||
ops::{BitAnd, BitOr, BitXor},
|
ops::{BitAnd, BitOr, BitXor},
|
||||||
};
|
};
|
||||||
|
|
|
@ -363,7 +363,10 @@ mod tests {
|
||||||
|
|
||||||
// The mantissa and exponent can cancel each other out!
|
// The mantissa and exponent can cancel each other out!
|
||||||
assert_eq!(parse(&format!("0x1{:0<512}p-2000", "")), 2.0f64.powi(48));
|
assert_eq!(parse(&format!("0x1{:0<512}p-2000", "")), 2.0f64.powi(48));
|
||||||
assert_eq!(parse(&format!("-0x1{:0<512}p-2000", "")), -(2.0f64.powi(48)));
|
assert_eq!(
|
||||||
|
parse(&format!("-0x1{:0<512}p-2000", "")),
|
||||||
|
-(2.0f64.powi(48))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in a new issue