summaryrefslogtreecommitdiff
path: root/test/rexml
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-16 05:07:31 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-16 05:07:31 +0000
commit3e92b635fb5422207b7bbdc924e292e51e21f040 (patch)
tree584f90b868188077c435bf144e15e66540a73acd /test/rexml
parentf6f7073e125ff903b77b8cb982a7417d96d51902 (diff)
Add frozen_string_literal: false for all files
When you change this to true, you may need to add more tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml')
-rw-r--r--test/rexml/listener.rb1
-rw-r--r--test/rexml/parse/test_document_type_declaration.rb1
-rw-r--r--test/rexml/parse/test_notation_declaration.rb1
-rw-r--r--test/rexml/parser/test_sax2.rb1
-rw-r--r--test/rexml/parser/test_tree.rb1
-rw-r--r--test/rexml/parser/test_ultra_light.rb1
-rw-r--r--test/rexml/rexml_test_utils.rb1
-rw-r--r--test/rexml/test_attributes.rb1
-rw-r--r--test/rexml/test_attributes_mixin.rb1
-rw-r--r--test/rexml/test_changing_encoding.rb1
-rw-r--r--test/rexml/test_comment.rb1
-rw-r--r--test/rexml/test_contrib.rb1
-rw-r--r--test/rexml/test_core.rb1
-rw-r--r--test/rexml/test_doctype.rb1
-rw-r--r--test/rexml/test_document.rb1
-rw-r--r--test/rexml/test_elements.rb1
-rw-r--r--test/rexml/test_encoding.rb1
-rw-r--r--test/rexml/test_entity.rb1
-rw-r--r--test/rexml/test_functions.rb1
-rw-r--r--test/rexml/test_functions_number.rb1
-rw-r--r--test/rexml/test_jaxen.rb1
-rw-r--r--test/rexml/test_light.rb1
-rw-r--r--test/rexml/test_lightparser.rb1
-rw-r--r--test/rexml/test_listener.rb1
-rw-r--r--test/rexml/test_martin_fowler.rb1
-rw-r--r--test/rexml/test_namespace.rb1
-rw-r--r--test/rexml/test_order.rb1
-rw-r--r--test/rexml/test_preceding_sibling.rb1
-rw-r--r--test/rexml/test_pullparser.rb1
-rw-r--r--test/rexml/test_rexml_issuezilla.rb1
-rw-r--r--test/rexml/test_sax.rb1
-rw-r--r--test/rexml/test_stream.rb1
-rw-r--r--test/rexml/test_text.rb1
-rw-r--r--test/rexml/test_ticket_80.rb1
-rw-r--r--test/rexml/test_validation_rng.rb1
-rw-r--r--test/rexml/test_xml_declaration.rb1
-rw-r--r--test/rexml/xpath/test_attribute.rb1
-rw-r--r--test/rexml/xpath/test_axis_preceding_sibling.rb1
-rw-r--r--test/rexml/xpath/test_base.rb1
-rw-r--r--test/rexml/xpath/test_node.rb1
-rw-r--r--test/rexml/xpath/test_predicate.rb1
-rw-r--r--test/rexml/xpath/test_text.rb1
42 files changed, 42 insertions, 0 deletions
diff --git a/test/rexml/listener.rb b/test/rexml/listener.rb
index 81c9e88..6bede03 100644
--- a/test/rexml/listener.rb
+++ b/test/rexml/listener.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
class Listener
attr_reader :ts, :te
attr_reader :normalize
diff --git a/test/rexml/parse/test_document_type_declaration.rb b/test/rexml/parse/test_document_type_declaration.rb
index 59fe561..80f7088 100644
--- a/test/rexml/parse/test_document_type_declaration.rb
+++ b/test/rexml/parse/test_document_type_declaration.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "rexml/document"
diff --git a/test/rexml/parse/test_notation_declaration.rb b/test/rexml/parse/test_notation_declaration.rb
index 0a4e737..0d29f0d 100644
--- a/test/rexml/parse/test_notation_declaration.rb
+++ b/test/rexml/parse/test_notation_declaration.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'rexml/document'
diff --git a/test/rexml/parser/test_sax2.rb b/test/rexml/parser/test_sax2.rb
index dba5eab..91d135f 100644
--- a/test/rexml/parser/test_sax2.rb
+++ b/test/rexml/parser/test_sax2.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "rexml/parsers/sax2parser"
require "rexml/sax2listener"
diff --git a/test/rexml/parser/test_tree.rb b/test/rexml/parser/test_tree.rb
index fa010f6..7ab0add 100644
--- a/test/rexml/parser/test_tree.rb
+++ b/test/rexml/parser/test_tree.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "rexml/document"
require "rexml/parsers/treeparser"
diff --git a/test/rexml/parser/test_ultra_light.rb b/test/rexml/parser/test_ultra_light.rb
index 4960fc1..c48a13d 100644
--- a/test/rexml/parser/test_ultra_light.rb
+++ b/test/rexml/parser/test_ultra_light.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "rexml/parsers/ultralightparser"
diff --git a/test/rexml/rexml_test_utils.rb b/test/rexml/rexml_test_utils.rb
index 57fe65c..7c59629 100644
--- a/test/rexml/rexml_test_utils.rb
+++ b/test/rexml/rexml_test_utils.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
module REXMLTestUtils
def fixture_path(*components)
diff --git a/test/rexml/test_attributes.rb b/test/rexml/test_attributes.rb
index aea1d88..d6f566b 100644
--- a/test/rexml/test_attributes.rb
+++ b/test/rexml/test_attributes.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit/testcase'
require 'rexml/document'
diff --git a/test/rexml/test_attributes_mixin.rb b/test/rexml/test_attributes_mixin.rb
index 17cca4e..3a9f54e 100644
--- a/test/rexml/test_attributes_mixin.rb
+++ b/test/rexml/test_attributes_mixin.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'rexml/document'
diff --git a/test/rexml/test_changing_encoding.rb b/test/rexml/test_changing_encoding.rb
index 9471ad1..a2dc072 100644
--- a/test/rexml/test_changing_encoding.rb
+++ b/test/rexml/test_changing_encoding.rb
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
require 'rexml/encoding'
diff --git a/test/rexml/test_comment.rb b/test/rexml/test_comment.rb
index d5e78a5..0af2f5c 100644
--- a/test/rexml/test_comment.rb
+++ b/test/rexml/test_comment.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit/testcase"
require 'rexml/document'
diff --git a/test/rexml/test_contrib.rb b/test/rexml/test_contrib.rb
index fa84ebe..8462b3c 100644
--- a/test/rexml/test_contrib.rb
+++ b/test/rexml/test_contrib.rb
@@ -1,4 +1,5 @@
# coding: binary
+# frozen_string_literal: false
require_relative "rexml_test_utils"
diff --git a/test/rexml/test_core.rb b/test/rexml/test_core.rb
index 97aada9..f4eba0b 100644
--- a/test/rexml/test_core.rb
+++ b/test/rexml/test_core.rb
@@ -1,4 +1,5 @@
# coding: binary
+# frozen_string_literal: false
require_relative "rexml_test_utils"
diff --git a/test/rexml/test_doctype.rb b/test/rexml/test_doctype.rb
index 0b3ea11..91de05b 100644
--- a/test/rexml/test_doctype.rb
+++ b/test/rexml/test_doctype.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'rexml/document'
diff --git a/test/rexml/test_document.rb b/test/rexml/test_document.rb
index 46cd6f7..c0faae4 100644
--- a/test/rexml/test_document.rb
+++ b/test/rexml/test_document.rb
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
require "rexml/document"
require "test/unit"
diff --git a/test/rexml/test_elements.rb b/test/rexml/test_elements.rb
index f253a75..a850e62 100644
--- a/test/rexml/test_elements.rb
+++ b/test/rexml/test_elements.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit/testcase'
require 'rexml/document'
diff --git a/test/rexml/test_encoding.rb b/test/rexml/test_encoding.rb
index 058fb97..919db13 100644
--- a/test/rexml/test_encoding.rb
+++ b/test/rexml/test_encoding.rb
@@ -1,4 +1,5 @@
# coding: binary
+# frozen_string_literal: false
require_relative "rexml_test_utils"
diff --git a/test/rexml/test_entity.rb b/test/rexml/test_entity.rb
index bef1bd6..6dc6637 100644
--- a/test/rexml/test_entity.rb
+++ b/test/rexml/test_entity.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit/testcase"
require 'rexml/document'
diff --git a/test/rexml/test_functions.rb b/test/rexml/test_functions.rb
index bf501ff..5ac823d 100644
--- a/test/rexml/test_functions.rb
+++ b/test/rexml/test_functions.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit/testcase"
require "rexml/document"
diff --git a/test/rexml/test_functions_number.rb b/test/rexml/test_functions_number.rb
index 0b5ec92..84ec5c7 100644
--- a/test/rexml/test_functions_number.rb
+++ b/test/rexml/test_functions_number.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/document'
require 'test/unit'
require 'rexml/functions'
diff --git a/test/rexml/test_jaxen.rb b/test/rexml/test_jaxen.rb
index 1eec73f..aa9e299 100644
--- a/test/rexml/test_jaxen.rb
+++ b/test/rexml/test_jaxen.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'rexml_test_utils'
require "rexml/document"
diff --git a/test/rexml/test_light.rb b/test/rexml/test_light.rb
index b775eb7..99bd9ca 100644
--- a/test/rexml/test_light.rb
+++ b/test/rexml/test_light.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rexml_test_utils"
require "rexml/light/node"
require "rexml/parsers/lightparser"
diff --git a/test/rexml/test_lightparser.rb b/test/rexml/test_lightparser.rb
index f8212dc..1aeac07 100644
--- a/test/rexml/test_lightparser.rb
+++ b/test/rexml/test_lightparser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'rexml_test_utils'
require 'rexml/parsers/lightparser'
diff --git a/test/rexml/test_listener.rb b/test/rexml/test_listener.rb
index 309e827..322d368 100644
--- a/test/rexml/test_listener.rb
+++ b/test/rexml/test_listener.rb
@@ -1,4 +1,5 @@
# coding: binary
+# frozen_string_literal: false
require_relative 'rexml_test_utils'
diff --git a/test/rexml/test_martin_fowler.rb b/test/rexml/test_martin_fowler.rb
index 26db110..da685a8 100644
--- a/test/rexml/test_martin_fowler.rb
+++ b/test/rexml/test_martin_fowler.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'rexml/document'
diff --git a/test/rexml/test_namespace.rb b/test/rexml/test_namespace.rb
index f5cd294..90e1d36 100644
--- a/test/rexml/test_namespace.rb
+++ b/test/rexml/test_namespace.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rexml_test_utils"
require "rexml/document"
diff --git a/test/rexml/test_order.rb b/test/rexml/test_order.rb
index 0e84961..807d9fa 100644
--- a/test/rexml/test_order.rb
+++ b/test/rexml/test_order.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'rexml_test_utils'
require 'rexml/document'
begin
diff --git a/test/rexml/test_preceding_sibling.rb b/test/rexml/test_preceding_sibling.rb
index 54fdd5b..d89a1e1 100644
--- a/test/rexml/test_preceding_sibling.rb
+++ b/test/rexml/test_preceding_sibling.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# ISSUE 32
require 'test/unit'
require 'rexml/document'
diff --git a/test/rexml/test_pullparser.rb b/test/rexml/test_pullparser.rb
index db336a1..31b5b74 100644
--- a/test/rexml/test_pullparser.rb
+++ b/test/rexml/test_pullparser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit/testcase"
require 'rexml/parsers/pullparser'
diff --git a/test/rexml/test_rexml_issuezilla.rb b/test/rexml/test_rexml_issuezilla.rb
index bb63466..1c54c9d 100644
--- a/test/rexml/test_rexml_issuezilla.rb
+++ b/test/rexml/test_rexml_issuezilla.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'rexml_test_utils'
require 'rexml/document'
diff --git a/test/rexml/test_sax.rb b/test/rexml/test_sax.rb
index 2d37ec9..00539f0 100644
--- a/test/rexml/test_sax.rb
+++ b/test/rexml/test_sax.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rexml_test_utils"
require 'rexml/sax2listener'
require 'rexml/parsers/sax2parser'
diff --git a/test/rexml/test_stream.rb b/test/rexml/test_stream.rb
index 3164d91..d7ceedc 100644
--- a/test/rexml/test_stream.rb
+++ b/test/rexml/test_stream.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit/testcase"
require "rexml/document"
require 'rexml/streamlistener'
diff --git a/test/rexml/test_text.rb b/test/rexml/test_text.rb
index 52ee11e..3f8036e 100644
--- a/test/rexml/test_text.rb
+++ b/test/rexml/test_text.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/text"
module REXMLTests
diff --git a/test/rexml/test_ticket_80.rb b/test/rexml/test_ticket_80.rb
index ffeece5..ab6a57e 100644
--- a/test/rexml/test_ticket_80.rb
+++ b/test/rexml/test_ticket_80.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#------------------------------------------------------------------------------
# file: rexml_test.rb
# desc: test's REXML's XML/XPath implementation
diff --git a/test/rexml/test_validation_rng.rb b/test/rexml/test_validation_rng.rb
index 8989fe2..b5b5045 100644
--- a/test/rexml/test_validation_rng.rb
+++ b/test/rexml/test_validation_rng.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit/testcase"
require "rexml/document"
diff --git a/test/rexml/test_xml_declaration.rb b/test/rexml/test_xml_declaration.rb
index a96d40c..a4d97c4 100644
--- a/test/rexml/test_xml_declaration.rb
+++ b/test/rexml/test_xml_declaration.rb
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
#
# Created by Henrik MÃ¥rtensson on 2007-02-18.
# Copyright (c) 2007. All rights reserved.
diff --git a/test/rexml/xpath/test_attribute.rb b/test/rexml/xpath/test_attribute.rb
index 95af4de..9304db4 100644
--- a/test/rexml/xpath/test_attribute.rb
+++ b/test/rexml/xpath/test_attribute.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'rexml/document'
diff --git a/test/rexml/xpath/test_axis_preceding_sibling.rb b/test/rexml/xpath/test_axis_preceding_sibling.rb
index 2731807..5842c6b 100644
--- a/test/rexml/xpath/test_axis_preceding_sibling.rb
+++ b/test/rexml/xpath/test_axis_preceding_sibling.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit/testcase"
require "rexml/document"
diff --git a/test/rexml/xpath/test_base.rb b/test/rexml/xpath/test_base.rb
index a57ba63..5079fdd 100644
--- a/test/rexml/xpath/test_base.rb
+++ b/test/rexml/xpath/test_base.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "../rexml_test_utils"
require "rexml/document"
diff --git a/test/rexml/xpath/test_node.rb b/test/rexml/xpath/test_node.rb
index aec2de1..e0e958e 100644
--- a/test/rexml/xpath/test_node.rb
+++ b/test/rexml/xpath/test_node.rb
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
require_relative "../rexml_test_utils"
diff --git a/test/rexml/xpath/test_predicate.rb b/test/rexml/xpath/test_predicate.rb
index 287e131..ce1aaa3 100644
--- a/test/rexml/xpath/test_predicate.rb
+++ b/test/rexml/xpath/test_predicate.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit/testcase"
require "rexml/document"
require "rexml/xpath"
diff --git a/test/rexml/xpath/test_text.rb b/test/rexml/xpath/test_text.rb
index 46aba3c..03afe96 100644
--- a/test/rexml/xpath/test_text.rb
+++ b/test/rexml/xpath/test_text.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'rexml/document'
require 'rexml/element'