Sha256: 1f9725be6ab1ed89a7c67816c1f351b397e4aa35102ceb14cda31d07b6464c7a
Contents?: true
Size: 246 Bytes
Versions: 19
Compression:
Stored size: 246 Bytes
Contents
#[test] fn it_converts_to_bytes() { use magnus::RString; let ruby = unsafe { magnus::embed::init() }; let s: RString = ruby.eval("[0,0,0].pack('c*')").unwrap(); assert_eq!(bytes::Bytes::from_static(&[0, 0, 0]), s.to_bytes()); }
Version data entries
19 entries across 19 versions & 1 rubygems