Sha256: 21427a640e833d7387ddd147a0901c35bb39b0ae4ef2bcaaef9358c56794182c
Contents?: true
Size: 410 Bytes
Versions: 19
Compression:
Stored size: 410 Bytes
Contents
#[test] fn it_converts_floats_to_value() { let ruby = unsafe { magnus::embed::init() }; magnus::rb_assert!(ruby, "val == 0.5", val = 0.5); magnus::rb_assert!( ruby, "val == 18446744073709552000.0", val = 18446744073709552000.0 ); magnus::rb_assert!(ruby, "val == Float::INFINITY", val = f64::INFINITY); magnus::rb_assert!(ruby, "val.nan?", val = f64::NAN); }
Version data entries
19 entries across 19 versions & 1 rubygems