Sha256: 5aeea899215f6b27c59f5ab6e8bcfcf663f68da27f597c00be79e8d8c2d91ecf
Contents?: true
Size: 648 Bytes
Versions: 1
Compression:
Stored size: 648 Bytes
Contents
require 'spec_helper' describe "String" do it "handles contiguous parts correctly" do str = "a" "b" str.should == "ab" str2 = "d" "#{str}" str2.should == "dab" end it 'parses complex heredoc (pr #1363)' do str = <<'...end ruby23.y/module_eval...' def version 23 end def default_encoding Encoding::UTF_8 end ...end ruby23.y/module_eval... str.should == "\n def version\n 23\n end\n\n def default_encoding\n Encoding::UTF_8\n end\n" end end describe "String#tr" do it 'regression for: https://github.com/opal/opal/issues/1386' do 'YWE/'.tr('+/', '-_').should == 'YWE_' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opal-0.11.0.rc1 | spec/opal/core/string_spec.rb |