Sha256: 82a020b8866a70bfab5a38254004758cf02c58c7556d9005163dfd72a0b92d66

Contents?: true

Size: 667 Bytes

Versions: 6

Compression:

Stored size: 667 Bytes

Contents

describe "Ruby character strings" do
  it "don't get interpolated when put in single quotes" do
    @ip = 'xxx'
    '#{@ip}'.should == '#{@ip}'
  end
  
  it 'get interpolated with #{} when put in double quotes' do
    @ip = 'xxx'
    "#{@ip}".should == "xxx"
  end
  
  it "interpolate instance variables just with the # character" #do
    # @ip = "xxx"
    # "#@ip".should == "xxx"
  # end
  
  it "interpolate global variables just with the # character"
  
  it "interpolate class variables with just the # character"
  
  it "allow underscore as part of a variable name in a simple interpolation"
  
  it "have characters [.(=?!# end simple # interpolation"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opal-0.3.2 gems/core/spec/language/string_spec.rb
opal-0.3.1 gems/core/spec/language/string_spec.rb
opal-0.3.0 gems/core/spec/language/string_spec.rb
opal-0.2.2 opals/opal/opal/spec/language/string_spec.rb
opal-0.2.0 opals/opal/opal/spec/language/string_spec.rb
opal-0.1.0 opals/opal/spec/language/string_spec.rb