From 478b14ea4fa775d6f6f1ab4e030b99e47d517ee2 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@19421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/enc/test_euc_jp.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/enc/test_euc_jp.rb b/test/ruby/enc/test_euc_jp.rb index 82abe2116d..1ccc55ccb9 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 v1.2.3