Sha256: d8c69caa64a05a36a3197951433f1a529d9b68abdec8cb734a52a5f44f7deb06

Contents?: true

Size: 313 Bytes

Versions: 22

Compression:

Stored size: 313 Bytes

Contents

describe "Kernel#p" do
  it "returns nil if called with no arguments" do
    p.should == nil
  end
  
  it "returns its argument if called with one argument" do
    p(123).should == 123
  end
  
  it "returns all arguments as an Array if called with multiple arguments" do
    p(1,2,3).should == [1,2,3]
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
opal-0.4.4 spec/opal/kernel/p_spec.rb
opal-0.4.3 spec/opal/kernel/p_spec.rb
opal-0.4.2 spec/opal/kernel/p_spec.rb
opal-0.4.1 spec/opal/kernel/p_spec.rb
opal-0.4.0 spec/opal/kernel/p_spec.rb
opal-0.3.44 spec/rubyspec/core/kernel/p_spec.rb
opal-0.3.43 spec/rubyspec/core/kernel/p_spec.rb
opal-0.3.42 spec/core/kernel/p_spec.rb
opal-0.3.41 spec/core/kernel/p_spec.rb
opal-0.3.40 spec/core/kernel/p_spec.rb
opal-0.3.39 spec/core/kernel/p_spec.rb
opal-0.3.38 spec/core/kernel/p_spec.rb
opal-0.3.37 spec/core/kernel/p_spec.rb
opal-0.3.36 spec/core/kernel/p_spec.rb
opal-0.3.35 spec/core/kernel/p_spec.rb
opal-0.3.34 spec/core/kernel/p_spec.rb
opal-0.3.33 spec/core/kernel/p_spec.rb
opal-0.3.32 spec/core/kernel/p_spec.rb
opal-0.3.31 spec/core/kernel/p_spec.rb
opal-0.3.30 spec/core/kernel/p_spec.rb