MCPcopy Create free account
hub / github.com/LaBatata101/sith-language-server / assert_f64_bits_eq

Function assert_f64_bits_eq

crates/sith_python_ast/src/float.rs:136–147  ·  view source on GitHub ↗
(expected: f64, actual: f64, msg: &str)

Source from the content-addressed store, hash-verified

134 }
135
136 fn assert_f64_bits_eq(expected: f64, actual: f64, msg: &str) {
137 assert_eq!(
138 expected.to_bits(),
139 actual.to_bits(),
140 "{}: expected {:?} (bits: {:x}), got {:?} (bits: {:x})",
141 msg,
142 expected,
143 expected.to_bits(),
144 actual,
145 actual.to_bits()
146 );
147 }
148
149 #[test]
150 fn test_conversion_positive_zero() {

Calls

no outgoing calls

Tested by 9

test_conversion_oneFunction · 0.68
test_conversion_piFunction · 0.68
test_conversion_infinityFunction · 0.68