From 8249eac95d2e32e29adbec5dd9ff5dab7c8f477b Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Fri, 3 May 2024 23:45:57 +0900 Subject: [PATCH] Add a comment for a UTF-8 character --- test/parse/test_element.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parse/test_element.rb b/test/parse/test_element.rb index 3751712..14d0703 100644 --- a/test/parse/test_element.rb +++ b/test/parse/test_element.rb @@ -49,7 +49,7 @@ def test_empty_namespace_attribute_name def test_empty_namespace_attribute_name_with_utf8_character exception = assert_raise(REXML::ParseException) do - parse("") + parse("") # U+200B ZERO WIDTH SPACE end assert_equal(<<-DETAIL.chomp.force_encoding("ASCII-8BIT"), exception.to_s) Invalid attribute name: <:\xE2\x80\x8B>