Sha256: fd65a2c0a6f439d3556492e22ad3f1112b08669ebb1cec44ea4df6b6790418ae
Contents?: true
Size: 700 Bytes
Versions: 15
Compression:
Stored size: 700 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
15 entries across 15 versions & 1 rubygems