From 1d1844b35d332d7ee931793d23a8eb9dc187ec2f Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 18 Sep 2008 16:16:45 +0000 Subject: * regexec.c (string_cmp_ic): add text_end argument. (slow_search): call enclen with real string end. (map_search): add text_end argument. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/enc/test_euc_jp.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/ruby/enc/test_euc_jp.rb b/test/ruby/enc/test_euc_jp.rb index 82abe2116..1ccc55ccb 100644 --- a/test/ruby/enc/test_euc_jp.rb +++ b/test/ruby/enc/test_euc_jp.rb @@ -17,4 +17,8 @@ class TestEUC_JP < Test::Unit::TestCase assert_no_match(/¤¢{0}\p{Katakana}{4}/, "´Á»ú´Á»ú") assert_raise(RegexpError) { Regexp.new('¤¢{0}\p{foobarbaz}') } end + + def test_charboundary + assert_nil(/\xA2\xA2/ =~ "\xA1\xA2\xA2\xA3") + end end -- cgit