mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/rexml/test_document.rb: Remove needless indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5f18ce9a02
commit
4e23505398
1 changed files with 3 additions and 3 deletions
|
@ -248,9 +248,9 @@ EOX
|
|||
|
||||
def test_utf_16be
|
||||
xml = <<-EOX.encode("UTF-16BE").force_encoding("ASCII-8BIT")
|
||||
<?xml version="1.0" encoding="UTF-16"?>
|
||||
<message>Hello world!</message>
|
||||
EOX
|
||||
<?xml version="1.0" encoding="UTF-16"?>
|
||||
<message>Hello world!</message>
|
||||
EOX
|
||||
bom = "\ufeff".encode("UTF-16BE").force_encoding("ASCII-8BIT")
|
||||
document = REXML::Document.new(bom + xml)
|
||||
assert_equal("UTF-16", document.encoding)
|
||||
|
|
Loading…
Reference in a new issue