summaryrefslogtreecommitdiff
path: root/test/psych
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/psych
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/psych')
-rw-r--r--test/psych/handlers/test_recorder.rb1
-rw-r--r--test/psych/helper.rb1
-rw-r--r--test/psych/json/test_stream.rb1
-rw-r--r--test/psych/nodes/test_enumerable.rb1
-rw-r--r--test/psych/test_alias_and_anchor.rb1
-rw-r--r--test/psych/test_array.rb1
-rw-r--r--test/psych/test_boolean.rb1
-rw-r--r--test/psych/test_class.rb1
-rw-r--r--test/psych/test_coder.rb1
-rw-r--r--test/psych/test_date_time.rb1
-rw-r--r--test/psych/test_deprecated.rb1
-rw-r--r--test/psych/test_document.rb1
-rw-r--r--test/psych/test_emitter.rb1
-rw-r--r--test/psych/test_encoding.rb1
-rw-r--r--test/psych/test_exception.rb1
-rw-r--r--test/psych/test_hash.rb1
-rw-r--r--test/psych/test_json_tree.rb1
-rw-r--r--test/psych/test_marshalable.rb1
-rw-r--r--test/psych/test_merge_keys.rb1
-rw-r--r--test/psych/test_nil.rb1
-rw-r--r--test/psych/test_null.rb1
-rw-r--r--test/psych/test_numeric.rb1
-rw-r--r--test/psych/test_object.rb1
-rw-r--r--test/psych/test_object_references.rb1
-rw-r--r--test/psych/test_omap.rb1
-rw-r--r--test/psych/test_parser.rb1
-rw-r--r--test/psych/test_psych.rb1
-rw-r--r--test/psych/test_safe_load.rb1
-rw-r--r--test/psych/test_scalar.rb1
-rw-r--r--test/psych/test_scalar_scanner.rb1
-rw-r--r--test/psych/test_serialize_subclasses.rb1
-rw-r--r--test/psych/test_set.rb1
-rw-r--r--test/psych/test_stream.rb1
-rw-r--r--test/psych/test_string.rb1
-rw-r--r--test/psych/test_struct.rb1
-rw-r--r--test/psych/test_symbol.rb1
-rw-r--r--test/psych/test_tainted.rb1
-rw-r--r--test/psych/test_to_yaml_properties.rb1
-rw-r--r--test/psych/test_tree_builder.rb1
-rw-r--r--test/psych/test_yaml.rb1
-rw-r--r--test/psych/test_yamldbm.rb1
-rw-r--r--test/psych/test_yamlstore.rb1
-rw-r--r--test/psych/visitors/test_depth_first.rb1
-rw-r--r--test/psych/visitors/test_emitter.rb1
-rw-r--r--test/psych/visitors/test_to_ruby.rb1
-rw-r--r--test/psych/visitors/test_yaml_tree.rb1
46 files changed, 46 insertions, 0 deletions
diff --git a/test/psych/handlers/test_recorder.rb b/test/psych/handlers/test_recorder.rb
index 96b8eac..17c7c6d 100644
--- a/test/psych/handlers/test_recorder.rb
+++ b/test/psych/handlers/test_recorder.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'psych/helper'
require 'psych/handlers/recorder'
diff --git a/test/psych/helper.rb b/test/psych/helper.rb
index 3bbb459..498cdf8 100644
--- a/test/psych/helper.rb
+++ b/test/psych/helper.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'minitest/autorun'
require 'stringio'
require 'tempfile'
diff --git a/test/psych/json/test_stream.rb b/test/psych/json/test_stream.rb
index b0c33e6..519c114 100644
--- a/test/psych/json/test_stream.rb
+++ b/test/psych/json/test_stream.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'psych/helper'
module Psych
diff --git a/test/psych/nodes/test_enumerable.rb b/test/psych/nodes/test_enumerable.rb
index 19cf94b..2f4e1f3 100644
--- a/test/psych/nodes/test_enumerable.rb
+++ b/test/psych/nodes/test_enumerable.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'psych/helper'
module Psych
diff --git a/test/psych/test_alias_and_anchor.rb b/test/psych/test_alias_and_anchor.rb
index 9e2c240..ed00960 100644
--- a/test/psych/test_alias_and_anchor.rb
+++ b/test/psych/test_alias_and_anchor.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
class ObjectWithInstanceVariables
diff --git a/test/psych/test_array.rb b/test/psych/test_array.rb
index 960ffd7..f1e71fb 100644
--- a/test/psych/test_array.rb
+++ b/test/psych/test_array.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_boolean.rb b/test/psych/test_boolean.rb
index b656f4f..b2803a6 100644
--- a/test/psych/test_boolean.rb
+++ b/test/psych/test_boolean.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_class.rb b/test/psych/test_class.rb
index c7f964c..4e1fd4a 100644
--- a/test/psych/test_class.rb
+++ b/test/psych/test_class.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_coder.rb b/test/psych/test_coder.rb
index e3213e2..e578d55 100644
--- a/test/psych/test_coder.rb
+++ b/test/psych/test_coder.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_date_time.rb b/test/psych/test_date_time.rb
index 72150ad..433fbf3 100644
--- a/test/psych/test_date_time.rb
+++ b/test/psych/test_date_time.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
require 'date'
diff --git a/test/psych/test_deprecated.rb b/test/psych/test_deprecated.rb
index fd2d329..a806f6b 100644
--- a/test/psych/test_deprecated.rb
+++ b/test/psych/test_deprecated.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_document.rb b/test/psych/test_document.rb
index bd77d60..97de2e1 100644
--- a/test/psych/test_document.rb
+++ b/test/psych/test_document.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_emitter.rb b/test/psych/test_emitter.rb
index b195019..54b9b35 100644
--- a/test/psych/test_emitter.rb
+++ b/test/psych/test_emitter.rb
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
require_relative 'helper'
diff --git a/test/psych/test_encoding.rb b/test/psych/test_encoding.rb
index 544337d..13ca5db 100644
--- a/test/psych/test_encoding.rb
+++ b/test/psych/test_encoding.rb
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
require_relative 'helper'
diff --git a/test/psych/test_exception.rb b/test/psych/test_exception.rb
index 30dfb24..85fa78f 100644
--- a/test/psych/test_exception.rb
+++ b/test/psych/test_exception.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_hash.rb b/test/psych/test_hash.rb
index e2a3129..b449ce4 100644
--- a/test/psych/test_hash.rb
+++ b/test/psych/test_hash.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_json_tree.rb b/test/psych/test_json_tree.rb
index a23fc1a..8bb850b 100644
--- a/test/psych/test_json_tree.rb
+++ b/test/psych/test_json_tree.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_marshalable.rb b/test/psych/test_marshalable.rb
index 7df74ee..544947a 100644
--- a/test/psych/test_marshalable.rb
+++ b/test/psych/test_marshalable.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
require 'delegate'
diff --git a/test/psych/test_merge_keys.rb b/test/psych/test_merge_keys.rb
index 1620a6a..76245ca 100644
--- a/test/psych/test_merge_keys.rb
+++ b/test/psych/test_merge_keys.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_nil.rb b/test/psych/test_nil.rb
index 3dbf562..3d4fa88 100644
--- a/test/psych/test_nil.rb
+++ b/test/psych/test_nil.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_null.rb b/test/psych/test_null.rb
index 1725550..d8ccb70 100644
--- a/test/psych/test_null.rb
+++ b/test/psych/test_null.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_numeric.rb b/test/psych/test_numeric.rb
index 5378b4a..9d8b74f 100644
--- a/test/psych/test_numeric.rb
+++ b/test/psych/test_numeric.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
require 'bigdecimal'
diff --git a/test/psych/test_object.rb b/test/psych/test_object.rb
index 5e3ce82..ed1ccd9 100644
--- a/test/psych/test_object.rb
+++ b/test/psych/test_object.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_object_references.rb b/test/psych/test_object_references.rb
index 273b466..1300bfc 100644
--- a/test/psych/test_object_references.rb
+++ b/test/psych/test_object_references.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_omap.rb b/test/psych/test_omap.rb
index 36edc26..80791aa 100644
--- a/test/psych/test_omap.rb
+++ b/test/psych/test_omap.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_parser.rb b/test/psych/test_parser.rb
index 0abe0dd..26aba05 100644
--- a/test/psych/test_parser.rb
+++ b/test/psych/test_parser.rb
@@ -1,4 +1,5 @@
# coding: utf-8
+# frozen_string_literal: false
require_relative 'helper'
diff --git a/test/psych/test_psych.rb b/test/psych/test_psych.rb
index 05a9343..7de9e07 100644
--- a/test/psych/test_psych.rb
+++ b/test/psych/test_psych.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
require 'stringio'
diff --git a/test/psych/test_safe_load.rb b/test/psych/test_safe_load.rb
index dd299c0..b69c54c 100644
--- a/test/psych/test_safe_load.rb
+++ b/test/psych/test_safe_load.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'psych/helper'
module Psych
diff --git a/test/psych/test_scalar.rb b/test/psych/test_scalar.rb
index e6b7697..4353ec3 100644
--- a/test/psych/test_scalar.rb
+++ b/test/psych/test_scalar.rb
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
require_relative 'helper'
diff --git a/test/psych/test_scalar_scanner.rb b/test/psych/test_scalar_scanner.rb
index e8e423c..7ad18c5 100644
--- a/test/psych/test_scalar_scanner.rb
+++ b/test/psych/test_scalar_scanner.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
require 'date'
diff --git a/test/psych/test_serialize_subclasses.rb b/test/psych/test_serialize_subclasses.rb
index f597b7a..be209ed 100644
--- a/test/psych/test_serialize_subclasses.rb
+++ b/test/psych/test_serialize_subclasses.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_set.rb b/test/psych/test_set.rb
index 921fe22..0eb999c 100644
--- a/test/psych/test_set.rb
+++ b/test/psych/test_set.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_stream.rb b/test/psych/test_stream.rb
index 7e41178..1b05428 100644
--- a/test/psych/test_stream.rb
+++ b/test/psych/test_stream.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_string.rb b/test/psych/test_string.rb
index a8ae55c..51aef40 100644
--- a/test/psych/test_string.rb
+++ b/test/psych/test_string.rb
@@ -1,4 +1,5 @@
# encoding: UTF-8
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_struct.rb b/test/psych/test_struct.rb
index 8c7f251..b7968d3 100644
--- a/test/psych/test_struct.rb
+++ b/test/psych/test_struct.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
class PsychStructWithIvar < Struct.new(:foo)
diff --git a/test/psych/test_symbol.rb b/test/psych/test_symbol.rb
index 558a672..a98881c 100644
--- a/test/psych/test_symbol.rb
+++ b/test/psych/test_symbol.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_tainted.rb b/test/psych/test_tainted.rb
index 37fc5b2..8705833 100644
--- a/test/psych/test_tainted.rb
+++ b/test/psych/test_tainted.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_to_yaml_properties.rb b/test/psych/test_to_yaml_properties.rb
index 724aab4..8a29b6a 100644
--- a/test/psych/test_to_yaml_properties.rb
+++ b/test/psych/test_to_yaml_properties.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_tree_builder.rb b/test/psych/test_tree_builder.rb
index 7ad3ddd..09f1ee3 100644
--- a/test/psych/test_tree_builder.rb
+++ b/test/psych/test_tree_builder.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module Psych
diff --git a/test/psych/test_yaml.rb b/test/psych/test_yaml.rb
index e628175..f8e9e2f 100644
--- a/test/psych/test_yaml.rb
+++ b/test/psych/test_yaml.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii; mode: ruby; ruby-indent-level: 4; tab-width: 4 -*-
+# frozen_string_literal: false
# vim:sw=4:ts=4
# $Id$
#
diff --git a/test/psych/test_yamldbm.rb b/test/psych/test_yamldbm.rb
index 62c88b7..71ee04f 100644
--- a/test/psych/test_yamldbm.rb
+++ b/test/psych/test_yamldbm.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
require 'tmpdir'
diff --git a/test/psych/test_yamlstore.rb b/test/psych/test_yamlstore.rb
index 94f1330..a9ce652 100644
--- a/test/psych/test_yamlstore.rb
+++ b/test/psych/test_yamlstore.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
require 'yaml/store'
require 'tmpdir'
diff --git a/test/psych/visitors/test_depth_first.rb b/test/psych/visitors/test_depth_first.rb
index 837c8e8..8072c26 100644
--- a/test/psych/visitors/test_depth_first.rb
+++ b/test/psych/visitors/test_depth_first.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'psych/helper'
module Psych
diff --git a/test/psych/visitors/test_emitter.rb b/test/psych/visitors/test_emitter.rb
index 780c953..9317855 100644
--- a/test/psych/visitors/test_emitter.rb
+++ b/test/psych/visitors/test_emitter.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'psych/helper'
module Psych
diff --git a/test/psych/visitors/test_to_ruby.rb b/test/psych/visitors/test_to_ruby.rb
index 19e5365..8878ea2 100644
--- a/test/psych/visitors/test_to_ruby.rb
+++ b/test/psych/visitors/test_to_ruby.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'psych/helper'
module Psych
diff --git a/test/psych/visitors/test_yaml_tree.rb b/test/psych/visitors/test_yaml_tree.rb
index 40702bc..b3890bc 100644
--- a/test/psych/visitors/test_yaml_tree.rb
+++ b/test/psych/visitors/test_yaml_tree.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'psych/helper'
module Psych