From b5763c2d36ef2ed42c5f9deb5542419006762ec9 Mon Sep 17 00:00:00 2001 From: Watson Date: Thu, 11 Jul 2024 18:23:21 +0900 Subject: [PATCH] Fix test for Text.check This patch will fix incorrect string in a case where unicode characters. Because of the use of single quotes, it was simply an ASCII string. --- test/test_text_check.rb | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/test/test_text_check.rb b/test/test_text_check.rb index d4076edf..56d00440 100644 --- a/test/test_text_check.rb +++ b/test/test_text_check.rb @@ -20,23 +20,23 @@ def assert_check_failed(string, illegal_part) class TestValid < self def test_entity_name_start_char_colon - assert_check('&:;') + assert_check("&:;") end def test_entity_name_start_char_under_score - assert_check('&_;') + assert_check("&_;") end def test_entity_name_mix - assert_check('&A.b-0123;') + assert_check("&A.b-0123;") end def test_character_reference_decimal - assert_check('¢') + assert_check("¢") end def test_character_reference_hex - assert_check('􏿿') + assert_check("􏿿") end def test_entity_name_non_ascii @@ -52,40 +52,40 @@ def test_normal_string class TestInvalid < self def test_lt - assert_check_failed('<;', '<') + assert_check_failed("<;", "<") end def test_lt_mix - assert_check_failed('ab