MCPcopy Create free account
hub / github.com/3Hren/msgpack-rust / pass_pack_f32

Function pass_pack_f32

tests/func/encode/float.rs:4–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3#[test]
4fn pass_pack_f32() {
5 let mut buf = [0x00, 0x00, 0x00, 0x00, 0x00];
6
7 write_f32(&mut &mut buf[..], 3.4028234e38_f32).ok().unwrap();
8
9 assert_eq!([0xca, 0x7f, 0x7f, 0xff, 0xff], buf);
10}
11
12#[test]
13fn pass_pack_f64() {

Callers

nothing calls this directly

Calls 1

write_f32Function · 0.85

Tested by

no test coverage detected