Project

General

Profile

Bug #11109 » bug.rb

yangzhijava (Jeffrey Yang), 04/30/2015 04:06 PM

 
#!/usr/local/bin/ruby
#

require 'stringio'
require 'bson'

sio = StringIO.new 1.to_bson
puts BSON::Int64.from_bson sio
sio.rewind
puts BSON::Int32.from_bson sio
(3-3/3)