diff options
author | Andrew Konchin <[email protected]> | 2025-05-07 13:08:11 +0300 |
---|---|---|
committer | Benoit Daloze <[email protected]> | 2025-05-09 23:22:15 +0200 |
commit | 269ad29de95e41cc8a4eede84b98a81a6ff4f7b6 () | |
tree | 150acf5f6d6c2d401dd46b84b942af26b3699cc9 /spec/ruby/language/string_spec.rb | |
parent | 3135eddb4e8c6975b6fa5345f15fdaa55257851a (diff) |
Update to ruby/spec@d8bacef
Notes: Merged: https://.com/ruby/ruby/pull/13265
-rw-r--r-- | spec/ruby/language/string_spec.rb | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,6 +1,7 @@ # -*- encoding: binary -*- require_relative '../spec_helper' # TODO: rewrite these horrid specs. it "are..." seriously?! @@ -27,6 +28,11 @@ describe "Ruby character strings" do "#$ip".should == 'xxx' end it "allows underscore as part of a variable name in a simple interpolation" do @my_ip = 'xxx' "#@my_ip".should == 'xxx' @@ -280,15 +286,15 @@ describe "Ruby String interpolation" do it "creates a non-frozen String" do code = <<~'RUBY' - "a#{6*7}c" RUBY eval(code).should_not.frozen? end it "creates a non-frozen String when # frozen-string-literal: true is used" do code = <<~'RUBY' - # frozen-string-literal: true - "a#{6*7}c" RUBY eval(code).should_not.frozen? end |