about summary refs log tree commit diff
path: root/library/std/tests/floats/f128.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/tests/floats/f128.rs')
-rw-r--r--library/std/tests/floats/f128.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/tests/floats/f128.rs b/library/std/tests/floats/f128.rs
index df28e8129dd..677738bac8f 100644
--- a/library/std/tests/floats/f128.rs
+++ b/library/std/tests/floats/f128.rs
@@ -112,6 +112,8 @@ fn test_nan() {
     assert!(!nan.is_sign_negative());
     assert!(!nan.is_normal());
     assert_eq!(Fp::Nan, nan.classify());
+    // Ensure the quiet bit is set.
+    assert!(nan.to_bits() & (1 << (f128::MANTISSA_DIGITS - 2)) != 0);
 }
 
 #[test]