mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@6f38a82
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b864bd05bf
commit
4fbb9aa3cb
145 changed files with 2847 additions and 2596 deletions
|
@ -233,27 +233,25 @@ describe "Ruby String literals" do
|
|||
long_string_literals.should == "Beautiful is better than ugly.Explicit is better than implicit."
|
||||
end
|
||||
|
||||
ruby_version_is "2.3" do
|
||||
describe "with a magic frozen comment" do
|
||||
it "produce the same object each time" do
|
||||
ruby_exe(fixture(__FILE__, "freeze_magic_comment_one_literal.rb")).chomp.should == "true"
|
||||
end
|
||||
describe "with a magic frozen comment" do
|
||||
it "produce the same object each time" do
|
||||
ruby_exe(fixture(__FILE__, "freeze_magic_comment_one_literal.rb")).chomp.should == "true"
|
||||
end
|
||||
|
||||
it "produce the same object for literals with the same content" do
|
||||
ruby_exe(fixture(__FILE__, "freeze_magic_comment_two_literals.rb")).chomp.should == "true"
|
||||
end
|
||||
it "produce the same object for literals with the same content" do
|
||||
ruby_exe(fixture(__FILE__, "freeze_magic_comment_two_literals.rb")).chomp.should == "true"
|
||||
end
|
||||
|
||||
it "produce the same object for literals with the same content in different files" do
|
||||
ruby_exe(fixture(__FILE__, "freeze_magic_comment_across_files.rb")).chomp.should == "true"
|
||||
end
|
||||
it "produce the same object for literals with the same content in different files" do
|
||||
ruby_exe(fixture(__FILE__, "freeze_magic_comment_across_files.rb")).chomp.should == "true"
|
||||
end
|
||||
|
||||
it "produce different objects for literals with the same content in different files if the other file doesn't have the comment" do
|
||||
ruby_exe(fixture(__FILE__, "freeze_magic_comment_across_files_no_comment.rb")).chomp.should == "true"
|
||||
end
|
||||
it "produce different objects for literals with the same content in different files if the other file doesn't have the comment" do
|
||||
ruby_exe(fixture(__FILE__, "freeze_magic_comment_across_files_no_comment.rb")).chomp.should == "true"
|
||||
end
|
||||
|
||||
it "produce different objects for literals with the same content in different files if they have different encodings" do
|
||||
ruby_exe(fixture(__FILE__, "freeze_magic_comment_across_files_diff_enc.rb")).chomp.should == "true"
|
||||
end
|
||||
it "produce different objects for literals with the same content in different files if they have different encodings" do
|
||||
ruby_exe(fixture(__FILE__, "freeze_magic_comment_across_files_diff_enc.rb")).chomp.should == "true"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue