summaryrefslogtreecommitdiff
path: root/test/erb
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-11 07:58:02 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-11 07:58:02 +0000
commit2d53925643c5756d8e750f212713fe666fc6f76b (patch)
tree397ed83622c6390b704035b0c35baf5b1871f4d1 /test/erb
parent832740d15c94b8f104f4f2774d3001864a3dd5f9 (diff)
remove PercentScanner. fixed % after %> bug. [ruby-dev:37751] [Bug #997]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/erb')
-rw-r--r--test/erb/test_erb.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/erb/test_erb.rb b/test/erb/test_erb.rb
index f9359c2..be9df0d 100644
--- a/test/erb/test_erb.rb
+++ b/test/erb/test_erb.rb
@@ -442,6 +442,10 @@ EOS
assert_equal("%A5%B5%A5%F3%A5%D7%A5%EB",
ERB::Util.url_encode("\xA5\xB5\xA5\xF3\xA5\xD7\xA5\xEB".force_encoding("EUC-JP")))
end
+
+ def test_percent_after_etag
+ assert_equal("1%", @erb.new("<%= 1 %>%", nil, "%").result)
+ end
end
class TestERBCoreWOStrScan < TestERBCore