From 37ef87c12b6c496001d0f199e46b4ecbfac5d394 Mon Sep 17 00:00:00 2001 From: eregon Date: Tue, 27 Feb 2018 20:21:25 +0000 Subject: Update to ruby/spec@cbe855c git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/language/string_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'spec/ruby/language/string_spec.rb') diff --git a/spec/ruby/language/string_spec.rb b/spec/ruby/language/string_spec.rb index dbec2652ed..d1090e1771 100644 --- a/spec/ruby/language/string_spec.rb +++ b/spec/ruby/language/string_spec.rb @@ -42,6 +42,15 @@ describe "Ruby character strings" do "#@ip#@ip".should == 'xxxxxx' end + it "don't get confused by partial interpolation character sequences" do + "#@".should == '#@' + "#@ ".should == '#@ ' + "#@@".should == '#@@' + "#@@ ".should == '#@@ ' + "#$ ".should == '#$ ' + "#\$".should == '#$' + end + it "taints the result of interpolation when an interpolated value is tainted" do "#{"".taint}".tainted?.should be_true -- cgit v1.2.3