mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@4e486fa
This commit is contained in:
parent
f4502b001a
commit
34776105c8
46 changed files with 629 additions and 94 deletions
|
@ -12,6 +12,10 @@ describe "ObjectSpace.memsize_of" do
|
|||
ObjectSpace.memsize_of(42).should == 0
|
||||
end
|
||||
|
||||
it "returns 0 for literal Symbols" do
|
||||
ObjectSpace.memsize_of(:abc).should == 0
|
||||
end
|
||||
|
||||
it "returns an Integer for an Object" do
|
||||
obj = Object.new
|
||||
ObjectSpace.memsize_of(obj).should be_kind_of(Integer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue