From 3e92b635fb5422207b7bbdc924e292e51e21f040 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 16 Dec 2015 05:07:31 +0000 Subject: 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 --- test/psych/handlers/test_recorder.rb | 1 + test/psych/helper.rb | 1 + test/psych/json/test_stream.rb | 1 + test/psych/nodes/test_enumerable.rb | 1 + test/psych/test_alias_and_anchor.rb | 1 + test/psych/test_array.rb | 1 + test/psych/test_boolean.rb | 1 + test/psych/test_class.rb | 1 + test/psych/test_coder.rb | 1 + test/psych/test_date_time.rb | 1 + test/psych/test_deprecated.rb | 1 + test/psych/test_document.rb | 1 + test/psych/test_emitter.rb | 1 + test/psych/test_encoding.rb | 1 + test/psych/test_exception.rb | 1 + test/psych/test_hash.rb | 1 + test/psych/test_json_tree.rb | 1 + test/psych/test_marshalable.rb | 1 + test/psych/test_merge_keys.rb | 1 + test/psych/test_nil.rb | 1 + test/psych/test_null.rb | 1 + test/psych/test_numeric.rb | 1 + test/psych/test_object.rb | 1 + test/psych/test_object_references.rb | 1 + test/psych/test_omap.rb | 1 + test/psych/test_parser.rb | 1 + test/psych/test_psych.rb | 1 + test/psych/test_safe_load.rb | 1 + test/psych/test_scalar.rb | 1 + test/psych/test_scalar_scanner.rb | 1 + test/psych/test_serialize_subclasses.rb | 1 + test/psych/test_set.rb | 1 + test/psych/test_stream.rb | 1 + test/psych/test_string.rb | 1 + test/psych/test_struct.rb | 1 + test/psych/test_symbol.rb | 1 + test/psych/test_tainted.rb | 1 + test/psych/test_to_yaml_properties.rb | 1 + test/psych/test_tree_builder.rb | 1 + test/psych/test_yaml.rb | 1 + test/psych/test_yamldbm.rb | 1 + test/psych/test_yamlstore.rb | 1 + test/psych/visitors/test_depth_first.rb | 1 + test/psych/visitors/test_emitter.rb | 1 + test/psych/visitors/test_to_ruby.rb | 1 + test/psych/visitors/test_yaml_tree.rb | 1 + 46 files changed, 46 insertions(+) (limited to 'test/psych') diff --git a/test/psych/handlers/test_recorder.rb b/test/psych/handlers/test_recorder.rb index 96b8eac1fc..17c7c6d0a0 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 3bbb459320..498cdf8b09 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 b0c33e6a2a..519c114b29 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 19cf94bd51..2f4e1f3bd0 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 9e2c24013d..ed009605ca 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 960ffd71d8..f1e71fb16c 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 b656f4f90e..b2803a6550 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 c7f964cc6d..4e1fd4a1d6 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 e3213e2faa..e578d55f2d 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 72150ad7db..433fbf3d26 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 fd2d3299e3..a806f6b972 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 bd77d60084..97de2e15ec 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 b19501932b..54b9b356e8 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 544337d4c0..13ca5dbc74 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 30dfb24f3b..85fa78f5df 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 e2a312901a..b449ce49e3 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 a23fc1ac8f..8bb850b138 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 7df74ee846..544947a521 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 1620a6a4e3..76245ca7b5 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 3dbf56279a..3d4fa88eaa 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 1725550443..d8ccb7056f 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 5378b4aaad..9d8b74f7ca 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 5e3ce8294f..ed1ccd9bf8 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 273b466b0c..1300bfc1db 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 36edc26c49..80791aa918 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 0abe0dd398..26aba0543b 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 05a93438bc..7de9e07fdc 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 dd299c0ebf..b69c54c199 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 e6b76975a6..4353ec33fa 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 e8e423cb05..7ad18c557b 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 f597b7a051..be209edf2f 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 921fe2284f..0eb999cb2f 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 7e41178e34..1b054289ea 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 a8ae55cabe..51aef40858 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 8c7f2513ce..b7968d3189 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 558a672886..a98881cf4b 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 37fc5b2b80..870583323d 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 724aab4f0e..8a29b6a9b9 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 7ad3ddd8a0..09f1ee30c9 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 e6281753a5..f8e9e2f955 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 62c88b753e..71ee04f863 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 94f1330d37..a9ce652ced 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 837c8e8c11..8072c26b57 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 780c953693..9317855bbb 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 19e5365244..8878ea22b2 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 40702bce79..b3890bcd72 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 -- cgit v1.2.3