test_floats.py 196 B

123456
  1. from erlpack import pack
  2. def test_float():
  3. assert pack(2.5) == '\x83F@\x04\x00\x00\x00\x00\x00\x00'
  4. assert pack(51512123841234.31423412341435123412341342) == '\x83FB\xc7l\xcc\xeb\xedi('