Skip to content

Commit

Permalink
Add a test for no tags with frozen source
Browse files Browse the repository at this point in the history
This covers a branch uncovered in Ruby 3, since the change to
not freeze interpolated string literals.
  • Loading branch information
jeremyevans committed Jul 13, 2022
1 parent 27a6b25 commit f8ab0e5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test.rb
Expand Up @@ -80,6 +80,18 @@ def self.quux
end
end

it "should handle no tags with frozen source" do
check_output(<<END1.freeze, <<END2, <<END3){}
a
END1
_buf = ::String.new; _buf << 'a
';
_buf.to_s
END2
a
END3
end

it "should handle no options" do
list = list = ['&\'<>"2']
check_output(<<END1, <<END2, <<END3){}
Expand Down

0 comments on commit f8ab0e5

Please sign in to comment.