Sha256: e4307a6c4cc7832bf6fb80536fd617cc22ca168967b37125eb3128c6e6851d52

Contents?: true

Size: 1.15 KB

Versions: 12

Compression:

Stored size: 1.15 KB

Contents

type-inference --test=BigDecimal --should-be=BigDecimal
require 'bigdecimal'
BigDecimal('')_|_
EOF

type-inference --test=CGI --should-be=CGI
require 'cgi'
CGI.new_|_
EOF

type-inference --test=Socket --should-be=TCPSocket
require 'socket'
TCPSocket.open('foo', 80)_|_
EOF

type-inference --test=StringIO --should-be=StringIO
require 'stringio'
StringIO.new_|_
EOF

type-inference --test=Date --should-be=Date
require 'date'
Date.today_|_
EOF

type-inference --test=DateTime --should-be=DateTime
require 'date'
DateTime.now_|_
EOF

type-inference --test=Rational --should-be=Rational
require 'rational'
Rational(0, 0)_|_
EOF

type-inference --test=Set --should-be=Set
require 'set'
Set[1, 2.3]_|_
EOF

type-inference --test=Set.Access --should-be=Fixnum
require 'set'
a = Set.new
a << 1
a.max_|_
EOF

type-inference --test=SortedSet --should-be=SortedSet
require 'set'
SortedSet[1, 2.3]_|_
EOF

type-inference --test=SortedSet.Access --should-be=Fixnum
require 'set'
a = SortedSet.new
a << 1
a.max_|_
EOF

type-inference --test=OptionParser --should-be=String,Boolean,TrueClass,FalseClass
require 'optparse'
OptionParser.new do |opt|
  opt.on('-a') {|v| v_|_}
  opt.order!
end
EOF

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rsense-core-0.6.6 test/script/stdlib.rsense
rsense-core-0.6.5 test/script/stdlib.rsense
rsense-core-0.6.4 test/script/stdlib.rsense
rsense-core-0.6.2 test/script/stdlib.rsense
rsense-core-0.6.1 test/script/stdlib.rsense
rsense-core-0.6.0 test/script/stdlib.rsense
rsense-core-0.5.9 test/script/stdlib.rsense
rsense-core-0.5.8 test/script/stdlib.rsense
rsense-core-0.5.6 test/script/stdlib.rsense
rsense-core-0.5.2 test/script/stdlib.rsense
rsense-core-0.5.1 test/script/stdlib.rsense
rsense-core-0.5.0 test/script/stdlib.rsense