Project

General

Profile

Bug #11109 ยป bug.rb

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

 
1
#!/usr/local/bin/ruby
2
#
3

    
4
require 'stringio'
5
require 'bson'
6

    
7
sio = StringIO.new 1.to_bson
8
puts BSON::Int64.from_bson sio
9
puts BSON::Int32.from_bson sio