Sha256: cd596fd79c423fce260425f7179180f847cce59a76e1562ec9d16b3cc69ced08

Contents?: true

Size: 303 Bytes

Versions: 33

Compression:

Stored size: 303 Bytes

Contents

describe "String#chr" do
  it "returns an empty String if self is an empty String" do
    "".chr.should == ""
  end

  it "returns a 1-character String" do
    "glark".chr.size.should == 1
  end

  it "returns the character at the start of the String" do
    "Goodbye, world".chr.should == "G"
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
opal-0.3.33 spec/core/string/chr_spec.rb
opal-0.3.32 spec/core/string/chr_spec.rb
opal-0.3.31 spec/core/string/chr_spec.rb
opal-0.3.30 spec/core/string/chr_spec.rb
opal-0.3.29 spec/core/string/chr_spec.rb
opal-0.3.28 spec/core/string/chr_spec.rb
opal-0.3.27 spec/core/string/chr_spec.rb
opal-0.3.26 spec/core/string/chr_spec.rb
opal-0.3.25 spec/core/string/chr_spec.rb
opal-0.3.22 spec/core/string/chr_spec.rb
opal-0.3.21 test/core/string/chr_spec.rb
opal-0.3.20 test/core/string/chr_spec.rb
opal-0.3.19 test/core/string/chr_spec.rb