summaryrefslogtreecommitdiff
path: root/test
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
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')
-rw-r--r--test/-ext-/array/test_resize.rb1
-rw-r--r--test/-ext-/bignum/test_big2str.rb1
-rw-r--r--test/-ext-/bignum/test_bigzero.rb1
-rw-r--r--test/-ext-/bignum/test_div.rb1
-rw-r--r--test/-ext-/bignum/test_mul.rb1
-rw-r--r--test/-ext-/bignum/test_pack.rb1
-rw-r--r--test/-ext-/bignum/test_str2big.rb1
-rw-r--r--test/-ext-/bug_reporter/test_bug_reporter.rb1
-rw-r--r--test/-ext-/class/test_class2name.rb1
-rw-r--r--test/-ext-/debug/test_debug.rb1
-rw-r--r--test/-ext-/debug/test_profile_frames.rb1
-rw-r--r--test/-ext-/exception/test_data_error.rb1
-rw-r--r--test/-ext-/exception/test_enc_raise.rb1
-rw-r--r--test/-ext-/exception/test_ensured.rb1
-rw-r--r--test/-ext-/file/test_stat.rb1
-rw-r--r--test/-ext-/float/test_nextafter.rb1
-rw-r--r--test/-ext-/funcall/test_passing_block.rb1
-rw-r--r--test/-ext-/gvl/test_last_thread.rb1
-rw-r--r--test/-ext-/hash/test_delete.rb1
-rw-r--r--test/-ext-/iseq_load/test_iseq_load.rb1
-rw-r--r--test/-ext-/iter/test_iter_break.rb1
-rw-r--r--test/-ext-/iter/test_yield_block.rb1
-rw-r--r--test/-ext-/load/test_dot_dot.rb1
-rw-r--r--test/-ext-/marshal/test_internal_ivar.rb1
-rw-r--r--test/-ext-/marshal/test_usrmarshal.rb1
-rw-r--r--test/-ext-/method/test_arity.rb1
-rw-r--r--test/-ext-/num2int/test_num2int.rb1
-rw-r--r--test/-ext-/path_to_class/test_path_to_class.rb1
-rw-r--r--test/-ext-/popen_deadlock/test_popen_deadlock.rb1
-rw-r--r--test/-ext-/postponed_job/test_postponed_job.rb1
-rw-r--r--test/-ext-/proc/test_bmethod.rb1
-rw-r--r--test/-ext-/rational/test_rat.rb1
-rw-r--r--test/-ext-/st/test_foreach.rb1
-rw-r--r--test/-ext-/st/test_numhash.rb1
-rw-r--r--test/-ext-/st/test_update.rb1
-rw-r--r--test/-ext-/string/test_coderange.rb1
-rw-r--r--test/-ext-/string/test_cstr.rb1
-rw-r--r--test/-ext-/string/test_ellipsize.rb1
-rw-r--r--test/-ext-/string/test_enc_associate.rb1
-rw-r--r--test/-ext-/string/test_enc_str_buf_cat.rb1
-rw-r--r--test/-ext-/string/test_fstring.rb1
-rw-r--r--test/-ext-/string/test_modify_expand.rb1
-rw-r--r--test/-ext-/string/test_nofree.rb1
-rw-r--r--test/-ext-/string/test_normalize.rb1
-rw-r--r--test/-ext-/string/test_qsort.rb1
-rw-r--r--test/-ext-/string/test_set_len.rb1
-rw-r--r--test/-ext-/struct/test_member.rb1
-rw-r--r--test/-ext-/symbol/test_inadvertent_creation.rb1
-rw-r--r--test/-ext-/symbol/test_type.rb1
-rw-r--r--test/-ext-/test_bug-3571.rb1
-rw-r--r--test/-ext-/test_bug-5832.rb1
-rw-r--r--test/-ext-/test_notimplement.rb1
-rw-r--r--test/-ext-/test_printf.rb1
-rw-r--r--test/-ext-/test_recursion.rb1
-rw-r--r--test/-ext-/time/test_new.rb1
-rw-r--r--test/-ext-/tracepoint/test_tracepoint.rb1
-rw-r--r--test/-ext-/typeddata/test_typeddata.rb1
-rw-r--r--test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb1
-rw-r--r--test/-ext-/win32/test_console_attr.rb1
-rw-r--r--test/-ext-/win32/test_dln.rb1
-rw-r--r--test/-ext-/win32/test_fd_setsize.rb1
-rw-r--r--test/base64/test_base64.rb1
-rw-r--r--test/benchmark/test_benchmark.rb1
-rw-r--r--test/bigdecimal/test_bigdecimal.rb1
-rw-r--r--test/bigdecimal/test_bigdecimal_util.rb1
-rw-r--r--test/bigdecimal/test_bigmath.rb1
-rw-r--r--test/bigdecimal/testbase.rb1
-rw-r--r--test/cgi/test_cgi_cookie.rb1
-rw-r--r--test/cgi/test_cgi_core.rb1
-rw-r--r--test/cgi/test_cgi_header.rb1
-rw-r--r--test/cgi/test_cgi_modruby.rb1
-rw-r--r--test/cgi/test_cgi_multipart.rb1
-rw-r--r--test/cgi/test_cgi_session.rb1
-rw-r--r--test/cgi/test_cgi_tag_helper.rb1
-rw-r--r--test/cgi/test_cgi_util.rb1
-rw-r--r--test/cgi/update_env.rb1
-rw-r--r--test/coverage/test_coverage.rb1
-rw-r--r--test/csv/base.rb1
-rwxr-xr-xtest/csv/test_csv_parsing.rb1
-rwxr-xr-xtest/csv/test_csv_writing.rb1
-rwxr-xr-xtest/csv/test_data_converters.rb1
-rwxr-xr-xtest/csv/test_encodings.rb1
-rwxr-xr-xtest/csv/test_features.rb1
-rwxr-xr-xtest/csv/test_headers.rb1
-rwxr-xr-xtest/csv/test_interface.rb1
-rwxr-xr-xtest/csv/test_row.rb1
-rwxr-xr-xtest/csv/test_table.rb1
-rw-r--r--test/csv/ts_all.rb1
-rw-r--r--test/date/test_date.rb1
-rw-r--r--test/date/test_date_arith.rb1
-rw-r--r--test/date/test_date_attr.rb1
-rw-r--r--test/date/test_date_base.rb1
-rw-r--r--test/date/test_date_compat.rb1
-rw-r--r--test/date/test_date_conv.rb1
-rw-r--r--test/date/test_date_marshal.rb1
-rw-r--r--test/date/test_date_new.rb1
-rw-r--r--test/date/test_date_parse.rb1
-rw-r--r--test/date/test_date_strftime.rb1
-rw-r--r--test/date/test_date_strptime.rb1
-rw-r--r--test/date/test_switch_hitter.rb1
-rw-r--r--test/dbm/test_dbm.rb1
-rw-r--r--test/digest/digest/foo.rb1
-rw-r--r--test/digest/test_digest.rb1
-rw-r--r--test/digest/test_digest_extend.rb1
-rw-r--r--test/drb/drbtest.rb1
-rw-r--r--test/drb/ignore_test_drb.rb1
-rw-r--r--test/drb/test_acl.rb1
-rw-r--r--test/drb/test_drb.rb1
-rw-r--r--test/drb/test_drbssl.rb1
-rw-r--r--test/drb/test_drbunix.rb1
-rw-r--r--test/drb/ut_array.rb1
-rw-r--r--test/drb/ut_array_drbssl.rb1
-rw-r--r--test/drb/ut_array_drbunix.rb1
-rw-r--r--test/drb/ut_drb.rb1
-rw-r--r--test/drb/ut_drb_drbssl.rb1
-rw-r--r--test/drb/ut_drb_drbunix.rb1
-rw-r--r--test/drb/ut_eq.rb1
-rw-r--r--test/drb/ut_eval.rb1
-rw-r--r--test/drb/ut_large.rb1
-rw-r--r--test/drb/ut_port.rb1
-rw-r--r--test/drb/ut_safe1.rb1
-rw-r--r--test/drb/ut_timerholder.rb1
-rw-r--r--test/dtrace/dummy.rb1
-rw-r--r--test/dtrace/helper.rb1
-rw-r--r--test/dtrace/test_array_create.rb1
-rw-r--r--test/dtrace/test_cmethod.rb1
-rw-r--r--test/dtrace/test_function_entry.rb1
-rw-r--r--test/dtrace/test_gc.rb1
-rw-r--r--test/dtrace/test_hash_create.rb1
-rw-r--r--test/dtrace/test_load.rb1
-rw-r--r--test/dtrace/test_method_cache.rb1
-rw-r--r--test/dtrace/test_object_create_start.rb1
-rw-r--r--test/dtrace/test_raise.rb1
-rw-r--r--test/dtrace/test_require.rb1
-rw-r--r--test/dtrace/test_singleton_function.rb1
-rw-r--r--test/dtrace/test_string.rb1
-rw-r--r--test/erb/test_erb.rb1
-rw-r--r--test/erb/test_erb_command.rb1
-rw-r--r--test/erb/test_erb_m17n.rb1
-rw-r--r--test/etc/test_etc.rb1
-rw-r--r--test/excludes/TestException.rb1
-rw-r--r--test/excludes/TestIO_Console.rb1
-rw-r--r--test/excludes/TestThread.rb1
-rw-r--r--test/fiddle/helper.rb1
-rw-r--r--test/fiddle/test_c_struct_entry.rb1
-rw-r--r--test/fiddle/test_c_union_entity.rb1
-rw-r--r--test/fiddle/test_closure.rb1
-rw-r--r--test/fiddle/test_cparser.rb1
-rw-r--r--test/fiddle/test_fiddle.rb1
-rw-r--r--test/fiddle/test_func.rb1
-rw-r--r--test/fiddle/test_function.rb1
-rw-r--r--test/fiddle/test_handle.rb1
-rw-r--r--test/fiddle/test_import.rb1
-rw-r--r--test/fiddle/test_pointer.rb1
-rw-r--r--test/fileutils/clobber.rb1
-rw-r--r--test/fileutils/fileasserts.rb1
-rw-r--r--test/fileutils/test_dryrun.rb1
-rw-r--r--test/fileutils/test_fileutils.rb1
-rw-r--r--test/fileutils/test_nowrite.rb1
-rw-r--r--test/fileutils/test_verbose.rb1
-rw-r--r--test/fileutils/visibility_tests.rb1
-rw-r--r--test/gdbm/test_gdbm.rb1
-rw-r--r--test/io/console/test_io_console.rb1
-rw-r--r--test/io/nonblock/test_flush.rb1
-rw-r--r--test/io/wait/test_io_wait.rb1
-rw-r--r--test/irb/test_completion.rb1
-rw-r--r--test/irb/test_option.rb1
-rw-r--r--test/irb/test_raise_no_backtrace_exception.rb1
-rw-r--r--test/json/setup_variant.rb1
-rwxr-xr-xtest/json/test_json.rb1
-rw-r--r--test/json/test_json_addition.rb1
-rw-r--r--test/json/test_json_encoding.rb1
-rw-r--r--test/json/test_json_fixtures.rb1
-rw-r--r--test/json/test_json_generate.rb1
-rw-r--r--test/json/test_json_generic_object.rb1
-rw-r--r--test/json/test_json_string_matching.rb1
-rw-r--r--test/json/test_json_unicode.rb1
-rw-r--r--test/lib/envutil.rb1
-rw-r--r--test/lib/find_executable.rb1
-rw-r--r--test/lib/iseq_loader_checker.rb1
-rw-r--r--test/lib/leakchecker.rb1
-rw-r--r--test/lib/memory_status.rb1
-rw-r--r--test/lib/minitest/autorun.rb1
-rw-r--r--test/lib/minitest/benchmark.rb1
-rw-r--r--test/lib/minitest/mock.rb1
-rw-r--r--test/lib/minitest/unit.rb1
-rw-r--r--test/lib/profile_test_all.rb1
-rw-r--r--test/lib/test/unit.rb1
-rw-r--r--test/lib/test/unit/assertions.rb1
-rw-r--r--test/lib/test/unit/parallel.rb1
-rw-r--r--test/lib/test/unit/testcase.rb1
-rw-r--r--test/lib/tracepointchecker.rb1
-rw-r--r--test/lib/with_different_ofs.rb1
-rw-r--r--test/lib/zombie_hunter.rb1
-rw-r--r--test/logger/test_logdevice.rb1
-rw-r--r--test/logger/test_logger.rb1
-rw-r--r--test/logger/test_severity.rb1
-rw-r--r--test/matrix/test_matrix.rb1
-rw-r--r--test/matrix/test_vector.rb1
-rw-r--r--test/minitest/metametameta.rb1
-rw-r--r--test/minitest/test_minitest_benchmark.rb1
-rw-r--r--test/minitest/test_minitest_mock.rb1
-rw-r--r--test/minitest/test_minitest_unit.rb1
-rw-r--r--test/misc/test_ruby_mode.rb1
-rw-r--r--test/mkmf/base.rb1
-rw-r--r--test/mkmf/test_config.rb1
-rw-r--r--test/mkmf/test_constant.rb1
-rw-r--r--test/mkmf/test_convertible.rb1
-rw-r--r--test/mkmf/test_find_executable.rb1
-rw-r--r--test/mkmf/test_flags.rb1
-rw-r--r--test/mkmf/test_framework.rb1
-rw-r--r--test/mkmf/test_have_func.rb1
-rw-r--r--test/mkmf/test_have_library.rb1
-rw-r--r--test/mkmf/test_have_macro.rb1
-rw-r--r--test/mkmf/test_libs.rb1
-rw-r--r--test/mkmf/test_signedness.rb1
-rw-r--r--test/mkmf/test_sizeof.rb1
-rw-r--r--test/monitor/test_monitor.rb1
-rw-r--r--test/net/http/test_buffered_io.rb1
-rw-r--r--test/net/http/test_http.rb1
-rw-r--r--test/net/http/test_http_request.rb1
-rw-r--r--test/net/http/test_httpheader.rb1
-rw-r--r--test/net/http/test_httpresponse.rb1
-rw-r--r--test/net/http/test_httpresponses.rb1
-rw-r--r--test/net/http/test_https.rb1
-rw-r--r--test/net/http/test_https_proxy.rb1
-rw-r--r--test/net/http/utils.rb1
-rw-r--r--test/net/pop/test_pop.rb1
-rw-r--r--test/net/protocol/test_protocol.rb1
-rw-r--r--test/net/smtp/test_response.rb1
-rw-r--r--test/net/smtp/test_smtp.rb1
-rw-r--r--test/net/smtp/test_ssl_socket.rb1
-rw-r--r--test/nkf/test_kconv.rb1
-rw-r--r--test/nkf/test_nkf.rb1
-rw-r--r--test/objspace/test_objspace.rb1
-rw-r--r--test/openssl/test_asn1.rb1
-rw-r--r--test/openssl/test_bn.rb1
-rw-r--r--test/openssl/test_buffering.rb1
-rw-r--r--test/openssl/test_cipher.rb1
-rw-r--r--test/openssl/test_config.rb1
-rw-r--r--test/openssl/test_digest.rb1
-rw-r--r--test/openssl/test_engine.rb1
-rw-r--r--test/openssl/test_fips.rb1
-rw-r--r--test/openssl/test_hmac.rb1
-rw-r--r--test/openssl/test_ns_spki.rb1
-rw-r--r--test/openssl/test_ocsp.rb1
-rw-r--r--test/openssl/test_pair.rb1
-rw-r--r--test/openssl/test_partial_record_read.rb1
-rw-r--r--test/openssl/test_pkcs12.rb1
-rw-r--r--test/openssl/test_pkcs5.rb1
-rw-r--r--test/openssl/test_pkcs7.rb1
-rw-r--r--test/openssl/test_pkey_dh.rb1
-rw-r--r--test/openssl/test_pkey_dsa.rb1
-rw-r--r--test/openssl/test_pkey_ec.rb1
-rw-r--r--test/openssl/test_pkey_rsa.rb1
-rw-r--r--test/openssl/test_random.rb1
-rw-r--r--test/openssl/test_ssl.rb1
-rw-r--r--test/openssl/test_ssl_session.rb1
-rw-r--r--test/openssl/test_x509cert.rb1
-rw-r--r--test/openssl/test_x509crl.rb1
-rw-r--r--test/openssl/test_x509ext.rb1
-rw-r--r--test/openssl/test_x509name.rb1
-rw-r--r--test/openssl/test_x509req.rb1
-rw-r--r--test/openssl/test_x509store.rb1
-rw-r--r--test/openssl/utils.rb1
-rw-r--r--test/optparse/test_acceptable.rb1
-rw-r--r--test/optparse/test_autoconf.rb1
-rw-r--r--test/optparse/test_bash_completion.rb1
-rw-r--r--test/optparse/test_getopts.rb1
-rw-r--r--test/optparse/test_noarg.rb1
-rw-r--r--test/optparse/test_optarg.rb1
-rw-r--r--test/optparse/test_optparse.rb1
-rw-r--r--test/optparse/test_placearg.rb1
-rw-r--r--test/optparse/test_reqarg.rb1
-rw-r--r--test/optparse/test_summary.rb1
-rw-r--r--test/optparse/test_zsh_completion.rb1
-rw-r--r--test/ostruct/test_ostruct.rb1
-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
-rw-r--r--test/rdoc/test_rdoc_alias.rb1
-rw-r--r--test/rdoc/test_rdoc_any_method.rb1
-rw-r--r--test/rdoc/test_rdoc_attr.rb1
-rw-r--r--test/rdoc/test_rdoc_class_module.rb1
-rw-r--r--test/rdoc/test_rdoc_code_object.rb1
-rw-r--r--test/rdoc/test_rdoc_comment.rb1
-rw-r--r--test/rdoc/test_rdoc_constant.rb1
-rw-r--r--test/rdoc/test_rdoc_context.rb1
-rw-r--r--test/rdoc/test_rdoc_context_section.rb1
-rw-r--r--test/rdoc/test_rdoc_cross_reference.rb1
-rw-r--r--test/rdoc/test_rdoc_encoding.rb1
-rw-r--r--test/rdoc/test_rdoc_extend.rb1
-rw-r--r--test/rdoc/test_rdoc_generator_darkfish.rb1
-rw-r--r--test/rdoc/test_rdoc_generator_json_index.rb1
-rw-r--r--test/rdoc/test_rdoc_generator_markup.rb1
-rw-r--r--test/rdoc/test_rdoc_generator_pot.rb1
-rw-r--r--test/rdoc/test_rdoc_generator_pot_po.rb1
-rw-r--r--test/rdoc/test_rdoc_generator_pot_po_entry.rb1
-rw-r--r--test/rdoc/test_rdoc_generator_ri.rb1
-rw-r--r--test/rdoc/test_rdoc_i18n_locale.rb1
-rw-r--r--test/rdoc/test_rdoc_i18n_text.rb1
-rw-r--r--test/rdoc/test_rdoc_include.rb1
-rw-r--r--test/rdoc/test_rdoc_markdown.rb1
-rw-r--r--test/rdoc/test_rdoc_markdown_test.rb1
-rw-r--r--test/rdoc/test_rdoc_markup.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_attribute_manager.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_attributes.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_document.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_formatter.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_hard_break.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_heading.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_include.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_indented_paragraph.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_paragraph.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_parser.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_pre_process.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_raw.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_to_ansi.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_to_bs.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_to_html.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_to_html_crossref.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_to_html_snippet.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_to_joined_paragraph.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_to_label.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_to_markdown.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_to_rdoc.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_to_table_of_contents.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_to_tt_only.rb1
-rw-r--r--test/rdoc/test_rdoc_markup_verbatim.rb1
-rw-r--r--test/rdoc/test_rdoc_method_attr.rb1
-rw-r--r--test/rdoc/test_rdoc_normal_class.rb1
-rw-r--r--test/rdoc/test_rdoc_normal_module.rb1
-rw-r--r--test/rdoc/test_rdoc_options.rb1
-rw-r--r--test/rdoc/test_rdoc_parser.rb1
-rw-r--r--test/rdoc/test_rdoc_parser_c.rb1
-rw-r--r--test/rdoc/test_rdoc_parser_changelog.rb1
-rw-r--r--test/rdoc/test_rdoc_parser_markdown.rb1
-rw-r--r--test/rdoc/test_rdoc_parser_rd.rb1
-rw-r--r--test/rdoc/test_rdoc_parser_ruby.rb1
-rw-r--r--test/rdoc/test_rdoc_parser_simple.rb1
-rw-r--r--test/rdoc/test_rdoc_rd.rb1
-rw-r--r--test/rdoc/test_rdoc_rd_block_parser.rb1
-rw-r--r--test/rdoc/test_rdoc_rd_inline.rb1
-rw-r--r--test/rdoc/test_rdoc_rd_inline_parser.rb1
-rw-r--r--test/rdoc/test_rdoc_rdoc.rb1
-rw-r--r--test/rdoc/test_rdoc_require.rb1
-rw-r--r--test/rdoc/test_rdoc_ri_driver.rb1
-rw-r--r--test/rdoc/test_rdoc_ri_paths.rb1
-rw-r--r--test/rdoc/test_rdoc_ruby_lex.rb1
-rw-r--r--test/rdoc/test_rdoc_ruby_token.rb1
-rw-r--r--test/rdoc/test_rdoc_rubygems_hook.rb1
-rw-r--r--test/rdoc/test_rdoc_servlet.rb1
-rw-r--r--test/rdoc/test_rdoc_single_class.rb1
-rw-r--r--test/rdoc/test_rdoc_stats.rb1
-rw-r--r--test/rdoc/test_rdoc_store.rb1
-rw-r--r--test/rdoc/test_rdoc_task.rb1
-rw-r--r--test/rdoc/test_rdoc_text.rb1
-rw-r--r--test/rdoc/test_rdoc_token_stream.rb1
-rw-r--r--test/rdoc/test_rdoc_tom_doc.rb1
-rw-r--r--test/rdoc/test_rdoc_top_level.rb1
-rw-r--r--test/rdoc/xref_data.rb1
-rw-r--r--test/rdoc/xref_test_case.rb1
-rw-r--r--test/readline/test_readline.rb1
-rw-r--r--test/readline/test_readline_history.rb1
-rw-r--r--test/resolv/test_addr.rb1
-rw-r--r--test/resolv/test_dns.rb1
-rw-r--r--test/resolv/test_resource.rb1
-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
-rw-r--r--test/rinda/test_rinda.rb1
-rw-r--r--test/rinda/test_tuplebag.rb1
-rw-r--r--test/ripper/dummyparser.rb1
-rw-r--r--test/ripper/test_files.rb1
-rw-r--r--test/ripper/test_filter.rb3
-rw-r--r--test/ripper/test_ripper.rb1
-rw-r--r--test/ripper/test_scanner_events.rb1
-rw-r--r--test/ripper/test_sexp.rb1
-rw-r--r--test/rss/rss-assertions.rb1
-rw-r--r--test/rss/rss-testcase.rb1
-rw-r--r--test/rss/test_1.0.rb1
-rw-r--r--test/rss/test_2.0.rb1
-rw-r--r--test/rss/test_accessor.rb1
-rw-r--r--test/rss/test_atom.rb1
-rw-r--r--test/rss/test_content.rb1
-rw-r--r--test/rss/test_dublincore.rb1
-rw-r--r--test/rss/test_image.rb1
-rw-r--r--test/rss/test_inherit.rb1
-rw-r--r--test/rss/test_itunes.rb1
-rw-r--r--test/rss/test_maker_0.9.rb1
-rw-r--r--test/rss/test_maker_1.0.rb1
-rw-r--r--test/rss/test_maker_2.0.rb1
-rw-r--r--test/rss/test_maker_atom_entry.rb1
-rw-r--r--test/rss/test_maker_atom_feed.rb1
-rw-r--r--test/rss/test_maker_content.rb1
-rw-r--r--test/rss/test_maker_dc.rb1
-rw-r--r--test/rss/test_maker_image.rb1
-rw-r--r--test/rss/test_maker_itunes.rb1
-rw-r--r--test/rss/test_maker_slash.rb1
-rw-r--r--test/rss/test_maker_sy.rb1
-rw-r--r--test/rss/test_maker_taxo.rb1
-rw-r--r--test/rss/test_maker_trackback.rb1
-rw-r--r--test/rss/test_maker_xml-stylesheet.rb1
-rw-r--r--test/rss/test_parser.rb1
-rw-r--r--test/rss/test_parser_1.0.rb1
-rw-r--r--test/rss/test_parser_2.0.rb1
-rw-r--r--test/rss/test_parser_atom_entry.rb1
-rw-r--r--test/rss/test_parser_atom_feed.rb1
-rw-r--r--test/rss/test_setup_maker_0.9.rb1
-rw-r--r--test/rss/test_setup_maker_1.0.rb1
-rw-r--r--test/rss/test_setup_maker_2.0.rb1
-rw-r--r--test/rss/test_setup_maker_atom_entry.rb1
-rw-r--r--test/rss/test_setup_maker_atom_feed.rb1
-rw-r--r--test/rss/test_setup_maker_itunes.rb1
-rw-r--r--test/rss/test_setup_maker_slash.rb1
-rw-r--r--test/rss/test_slash.rb1
-rw-r--r--test/rss/test_syndication.rb1
-rw-r--r--test/rss/test_taxonomy.rb1
-rw-r--r--test/rss/test_to_s.rb1
-rw-r--r--test/rss/test_trackback.rb1
-rw-r--r--test/rss/test_version.rb1
-rw-r--r--test/rss/test_xml-stylesheet.rb1
-rw-r--r--test/ruby/allpairs.rb1
-rw-r--r--test/ruby/beginmainend.rb1
-rw-r--r--test/ruby/enc/test_big5.rb1
-rw-r--r--test/ruby/enc/test_cp949.rb1
-rw-r--r--test/ruby/enc/test_emoji.rb1
-rw-r--r--test/ruby/enc/test_euc_jp.rb1
-rw-r--r--test/ruby/enc/test_euc_kr.rb1
-rw-r--r--test/ruby/enc/test_euc_tw.rb1
-rw-r--r--test/ruby/enc/test_gb18030.rb1
-rw-r--r--test/ruby/enc/test_gbk.rb1
-rw-r--r--test/ruby/enc/test_iso_8859.rb1
-rw-r--r--test/ruby/enc/test_koi8.rb1
-rw-r--r--test/ruby/enc/test_shift_jis.rb1
-rw-r--r--test/ruby/enc/test_utf16.rb1
-rw-r--r--test/ruby/enc/test_utf32.rb1
-rw-r--r--test/ruby/enc/test_windows_1251.rb1
-rw-r--r--test/ruby/enc/test_windows_1252.rb1
-rw-r--r--test/ruby/lbtest.rb1
-rw-r--r--test/ruby/marshaltestlib.rb1
-rw-r--r--test/ruby/sentence.rb1
-rw-r--r--test/ruby/test_alias.rb1
-rw-r--r--test/ruby/test_argf.rb1
-rw-r--r--test/ruby/test_arity.rb1
-rw-r--r--test/ruby/test_array.rb1
-rw-r--r--test/ruby/test_assignment.rb1
-rw-r--r--test/ruby/test_autoload.rb1
-rw-r--r--test/ruby/test_backtrace.rb1
-rw-r--r--test/ruby/test_basicinstructions.rb1
-rw-r--r--test/ruby/test_beginendblock.rb1
-rw-r--r--test/ruby/test_bignum.rb1
-rw-r--r--test/ruby/test_call.rb1
-rw-r--r--test/ruby/test_case.rb1
-rw-r--r--test/ruby/test_class.rb1
-rw-r--r--test/ruby/test_clone.rb1
-rw-r--r--test/ruby/test_comparable.rb1
-rw-r--r--test/ruby/test_complex.rb1
-rw-r--r--test/ruby/test_complex2.rb1
-rw-r--r--test/ruby/test_complexrational.rb1
-rw-r--r--test/ruby/test_condition.rb1
-rw-r--r--test/ruby/test_const.rb1
-rw-r--r--test/ruby/test_continuation.rb1
-rw-r--r--test/ruby/test_defined.rb1
-rw-r--r--test/ruby/test_dir.rb1
-rw-r--r--test/ruby/test_dir_m17n.rb1
-rw-r--r--test/ruby/test_econv.rb1
-rw-r--r--test/ruby/test_encoding.rb1
-rw-r--r--test/ruby/test_enum.rb1
-rw-r--r--test/ruby/test_enumerator.rb1
-rw-r--r--test/ruby/test_env.rb1
-rw-r--r--test/ruby/test_eval.rb1
-rw-r--r--test/ruby/test_exception.rb1
-rw-r--r--test/ruby/test_extlibs.rb1
-rw-r--r--test/ruby/test_fiber.rb1
-rw-r--r--test/ruby/test_file.rb1
-rw-r--r--test/ruby/test_file_exhaustive.rb1
-rw-r--r--test/ruby/test_fixnum.rb1
-rw-r--r--test/ruby/test_flip.rb1
-rw-r--r--test/ruby/test_float.rb1
-rw-r--r--test/ruby/test_fnmatch.rb1
-rw-r--r--test/ruby/test_gc.rb1
-rw-r--r--test/ruby/test_hash.rb1
-rw-r--r--test/ruby/test_ifunless.rb1
-rw-r--r--test/ruby/test_integer.rb1
-rw-r--r--test/ruby/test_integer_comb.rb1
-rw-r--r--test/ruby/test_io.rb1
-rw-r--r--test/ruby/test_io_m17n.rb1
-rw-r--r--test/ruby/test_iterator.rb1
-rw-r--r--test/ruby/test_keyword.rb1
-rw-r--r--test/ruby/test_lambda.rb1
-rw-r--r--test/ruby/test_lazy_enumerator.rb1
-rw-r--r--test/ruby/test_literal.rb1
-rw-r--r--test/ruby/test_m17n.rb1
-rw-r--r--test/ruby/test_m17n_comb.rb1
-rw-r--r--test/ruby/test_marshal.rb1
-rw-r--r--test/ruby/test_math.rb1
-rw-r--r--test/ruby/test_metaclass.rb1
-rw-r--r--test/ruby/test_method.rb1
-rw-r--r--test/ruby/test_mixed_unicode_escapes.rb1
-rw-r--r--test/ruby/test_module.rb1
-rw-r--r--test/ruby/test_not.rb1
-rw-r--r--test/ruby/test_notimp.rb1
-rw-r--r--test/ruby/test_numeric.rb1
-rw-r--r--test/ruby/test_object.rb1
-rw-r--r--test/ruby/test_objectspace.rb1
-rw-r--r--test/ruby/test_optimization.rb1
-rw-r--r--test/ruby/test_pack.rb1
-rw-r--r--test/ruby/test_parse.rb1
-rw-r--r--test/ruby/test_path.rb1
-rw-r--r--test/ruby/test_pipe.rb1
-rw-r--r--test/ruby/test_primitive.rb1
-rw-r--r--test/ruby/test_proc.rb1
-rw-r--r--test/ruby/test_process.rb1
-rw-r--r--test/ruby/test_rand.rb1
-rw-r--r--test/ruby/test_range.rb1
-rw-r--r--test/ruby/test_rational.rb1
-rw-r--r--test/ruby/test_rational2.rb1
-rw-r--r--test/ruby/test_readpartial.rb1
-rw-r--r--test/ruby/test_refinement.rb1
-rw-r--r--test/ruby/test_regexp.rb1
-rw-r--r--test/ruby/test_require.rb1
-rw-r--r--test/ruby/test_rubyvm.rb1
-rw-r--r--test/ruby/test_settracefunc.rb1
-rw-r--r--test/ruby/test_signal.rb1
-rw-r--r--test/ruby/test_sleep.rb1
-rw-r--r--test/ruby/test_sprintf.rb1
-rw-r--r--test/ruby/test_sprintf_comb.rb1
-rw-r--r--test/ruby/test_string.rb1
-rw-r--r--test/ruby/test_stringchar.rb1
-rw-r--r--test/ruby/test_struct.rb1
-rw-r--r--test/ruby/test_super.rb1
-rw-r--r--test/ruby/test_symbol.rb1
-rw-r--r--test/ruby/test_syntax.rb1
-rw-r--r--test/ruby/test_system.rb1
-rw-r--r--test/ruby/test_thread.rb1
-rw-r--r--test/ruby/test_threadgroup.rb1
-rw-r--r--test/ruby/test_time.rb1
-rw-r--r--test/ruby/test_time_tz.rb1
-rw-r--r--test/ruby/test_trace.rb1
-rw-r--r--test/ruby/test_transcode.rb1
-rw-r--r--test/ruby/test_undef.rb1
-rw-r--r--test/ruby/test_unicode_escape.rb1
-rw-r--r--test/ruby/test_variable.rb1
-rw-r--r--test/ruby/test_weakmap.rb1
-rw-r--r--test/ruby/test_whileuntil.rb1
-rw-r--r--test/ruby/test_yield.rb1
-rw-r--r--test/ruby/ut_eof.rb1
-rw-r--r--test/rubygems/bad_rake.rb1
-rw-r--r--test/rubygems/bogussources.rb1
-rw-r--r--test/rubygems/fake_certlib/openssl.rb1
-rw-r--r--test/rubygems/fix_openssl_warnings.rb1
-rw-r--r--test/rubygems/foo/discover.rb1
-rw-r--r--test/rubygems/good_rake.rb1
-rw-r--r--test/rubygems/plugin/exception/rubygems_plugin.rb1
-rw-r--r--test/rubygems/plugin/load/rubygems_plugin.rb1
-rw-r--r--test/rubygems/plugin/standarderror/rubygems_plugin.rb1
-rw-r--r--test/rubygems/rubygems/commands/crash_command.rb1
-rw-r--r--test/rubygems/rubygems_plugin.rb1
-rw-r--r--test/rubygems/sff/discover.rb1
-rw-r--r--test/rubygems/simple_gem.rb1
-rw-r--r--test/rubygems/test_bundled_ca.rb1
-rw-r--r--test/rubygems/test_config.rb1
-rw-r--r--test/rubygems/test_deprecate.rb1
-rw-r--r--test/rubygems/test_gem.rb1
-rw-r--r--test/rubygems/test_gem_available_set.rb1
-rw-r--r--test/rubygems/test_gem_command.rb1
-rw-r--r--test/rubygems/test_gem_command_manager.rb1
-rw-r--r--test/rubygems/test_gem_commands_build_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_cert_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_check_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_cleanup_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_contents_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_dependency_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_environment_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_fetch_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_generate_index_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_help_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_install_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_list_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_lock_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_mirror.rb1
-rw-r--r--test/rubygems/test_gem_commands_open_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_outdated_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_owner_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_pristine_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_push_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_query_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_search_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_server_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_setup_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_sources_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_specification_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_stale_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_uninstall_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_unpack_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_update_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_which_command.rb1
-rw-r--r--test/rubygems/test_gem_commands_yank_command.rb1
-rw-r--r--test/rubygems/test_gem_config_file.rb1
-rw-r--r--test/rubygems/test_gem_dependency.rb1
-rw-r--r--test/rubygems/test_gem_dependency_installer.rb1
-rw-r--r--test/rubygems/test_gem_dependency_list.rb1
-rw-r--r--test/rubygems/test_gem_dependency_resolution_error.rb1
-rw-r--r--test/rubygems/test_gem_doctor.rb1
-rw-r--r--test/rubygems/test_gem_ext_builder.rb1
-rw-r--r--test/rubygems/test_gem_ext_cmake_builder.rb1
-rw-r--r--test/rubygems/test_gem_ext_configure_builder.rb1
-rw-r--r--test/rubygems/test_gem_ext_ext_conf_builder.rb1
-rw-r--r--test/rubygems/test_gem_ext_rake_builder.rb1
-rw-r--r--test/rubygems/test_gem_gem_runner.rb1
-rw-r--r--test/rubygems/test_gem_gemcutter_utilities.rb1
-rw-r--r--test/rubygems/test_gem_impossible_dependencies_error.rb1
-rw-r--r--test/rubygems/test_gem_indexer.rb1
-rw-r--r--test/rubygems/test_gem_install_update_options.rb1
-rw-r--r--test/rubygems/test_gem_installer.rb1
-rw-r--r--test/rubygems/test_gem_local_remote_options.rb1
-rw-r--r--test/rubygems/test_gem_name_tuple.rb1
-rw-r--r--test/rubygems/test_gem_package.rb1
-rw-r--r--test/rubygems/test_gem_package_old.rb1
-rw-r--r--test/rubygems/test_gem_package_tar_header.rb1
-rw-r--r--test/rubygems/test_gem_package_tar_reader.rb1
-rw-r--r--test/rubygems/test_gem_package_tar_reader_entry.rb1
-rw-r--r--test/rubygems/test_gem_package_tar_writer.rb1
-rw-r--r--test/rubygems/test_gem_package_task.rb1
-rw-r--r--test/rubygems/test_gem_path_support.rb1
-rw-r--r--test/rubygems/test_gem_platform.rb1
-rw-r--r--test/rubygems/test_gem_rdoc.rb1
-rw-r--r--test/rubygems/test_gem_remote_fetcher.rb1
-rw-r--r--test/rubygems/test_gem_request.rb1
-rw-r--r--test/rubygems/test_gem_request_connection_pools.rb1
-rw-r--r--test/rubygems/test_gem_request_set.rb1
-rw-r--r--test/rubygems/test_gem_request_set_gem_dependency_api.rb1
-rw-r--r--test/rubygems/test_gem_request_set_lockfile.rb1
-rw-r--r--test/rubygems/test_gem_request_set_lockfile_parser.rb1
-rw-r--r--test/rubygems/test_gem_request_set_lockfile_tokenizer.rb1
-rw-r--r--test/rubygems/test_gem_requirement.rb1
-rw-r--r--test/rubygems/test_gem_resolver.rb1
-rw-r--r--test/rubygems/test_gem_resolver_activation_request.rb1
-rw-r--r--test/rubygems/test_gem_resolver_api_set.rb1
-rw-r--r--test/rubygems/test_gem_resolver_api_specification.rb1
-rw-r--r--test/rubygems/test_gem_resolver_best_set.rb1
-rw-r--r--test/rubygems/test_gem_resolver_composed_set.rb1
-rw-r--r--test/rubygems/test_gem_resolver_conflict.rb1
-rw-r--r--test/rubygems/test_gem_resolver_dependency_request.rb1
-rw-r--r--test/rubygems/test_gem_resolver_git_set.rb1
-rw-r--r--test/rubygems/test_gem_resolver_git_specification.rb1
-rw-r--r--test/rubygems/test_gem_resolver_index_set.rb1
-rw-r--r--test/rubygems/test_gem_resolver_index_specification.rb1
-rw-r--r--test/rubygems/test_gem_resolver_installed_specification.rb1
-rw-r--r--test/rubygems/test_gem_resolver_installer_set.rb1
-rw-r--r--test/rubygems/test_gem_resolver_local_specification.rb1
-rw-r--r--test/rubygems/test_gem_resolver_lock_set.rb1
-rw-r--r--test/rubygems/test_gem_resolver_lock_specification.rb1
-rw-r--r--test/rubygems/test_gem_resolver_requirement_list.rb1
-rw-r--r--test/rubygems/test_gem_resolver_specification.rb1
-rw-r--r--test/rubygems/test_gem_resolver_vendor_set.rb1
-rw-r--r--test/rubygems/test_gem_resolver_vendor_specification.rb1
-rw-r--r--test/rubygems/test_gem_security.rb1
-rw-r--r--test/rubygems/test_gem_security_policy.rb1
-rw-r--r--test/rubygems/test_gem_security_signer.rb1
-rw-r--r--test/rubygems/test_gem_security_trust_dir.rb1
-rw-r--r--test/rubygems/test_gem_server.rb1
-rw-r--r--test/rubygems/test_gem_silent_ui.rb1
-rw-r--r--test/rubygems/test_gem_source.rb1
-rw-r--r--test/rubygems/test_gem_source_fetch_problem.rb1
-rw-r--r--test/rubygems/test_gem_source_git.rb1
-rw-r--r--test/rubygems/test_gem_source_installed.rb1
-rw-r--r--test/rubygems/test_gem_source_list.rb1
-rw-r--r--test/rubygems/test_gem_source_local.rb1
-rw-r--r--test/rubygems/test_gem_source_lock.rb1
-rw-r--r--test/rubygems/test_gem_source_specific_file.rb1
-rw-r--r--test/rubygems/test_gem_source_vendor.rb1
-rw-r--r--test/rubygems/test_gem_spec_fetcher.rb1
-rw-r--r--test/rubygems/test_gem_specification.rb1
-rw-r--r--test/rubygems/test_gem_stream_ui.rb1
-rw-r--r--test/rubygems/test_gem_stub_specification.rb1
-rw-r--r--test/rubygems/test_gem_text.rb1
-rw-r--r--test/rubygems/test_gem_uninstaller.rb1
-rw-r--r--test/rubygems/test_gem_unsatisfiable_dependency_error.rb1
-rw-r--r--test/rubygems/test_gem_uri_formatter.rb1
-rw-r--r--test/rubygems/test_gem_util.rb1
-rw-r--r--test/rubygems/test_gem_validator.rb1
-rw-r--r--test/rubygems/test_gem_version.rb1
-rw-r--r--test/rubygems/test_gem_version_option.rb1
-rw-r--r--test/rubygems/test_kernel.rb1
-rw-r--r--test/rubygems/test_require.rb1
-rw-r--r--test/runner.rb1
-rw-r--r--test/scanf/test_scanf.rb1
-rw-r--r--test/scanf/test_scanfblocks.rb1
-rw-r--r--test/scanf/test_scanfio.rb1
-rw-r--r--test/sdbm/test_sdbm.rb1
-rw-r--r--test/shell/test_command_processor.rb1
-rw-r--r--test/stringio/test_stringio.rb1
-rw-r--r--test/strscan/test_stringscanner.rb1
-rw-r--r--test/syslog/test_syslog_logger.rb1
-rw-r--r--test/test_abbrev.rb1
-rw-r--r--test/test_cmath.rb1
-rw-r--r--test/test_delegate.rb1
-rw-r--r--test/test_find.rb1
-rw-r--r--test/test_forwardable.rb1
-rw-r--r--test/test_ipaddr.rb1
-rw-r--r--test/test_mathn.rb1
-rw-r--r--test/test_mutex_m.rb1
-rw-r--r--test/test_observer.rb1
-rw-r--r--test/test_prime.rb1
-rw-r--r--test/test_pstore.rb1
-rw-r--r--test/test_pty.rb1
-rw-r--r--test/test_rbconfig.rb1
-rw-r--r--test/test_securerandom.rb1
-rw-r--r--test/test_set.rb1
-rw-r--r--test/test_shellwords.rb1
-rw-r--r--test/test_singleton.rb1
-rw-r--r--test/test_syslog.rb1
-rw-r--r--test/test_tempfile.rb1
-rw-r--r--test/test_timeout.rb1
-rw-r--r--test/test_tmpdir.rb1
-rw-r--r--test/test_tracer.rb1
-rw-r--r--test/test_unicode_normalize.rb1
-rw-r--r--test/test_weakref.rb1
-rw-r--r--test/test_win32api.rb1
-rw-r--r--test/testunit/test4test_hideskip.rb1
-rw-r--r--test/testunit/test4test_redefinition.rb1
-rw-r--r--test/testunit/test4test_sorting.rb1
-rw-r--r--test/testunit/test_assertion.rb1
-rw-r--r--test/testunit/test_hideskip.rb1
-rw-r--r--test/testunit/test_parallel.rb1
-rw-r--r--test/testunit/test_redefinition.rb1
-rw-r--r--test/testunit/test_sorting.rb1
-rw-r--r--test/testunit/tests_for_parallel/ptest_first.rb1
-rw-r--r--test/testunit/tests_for_parallel/ptest_forth.rb1
-rw-r--r--test/testunit/tests_for_parallel/ptest_second.rb1
-rw-r--r--test/testunit/tests_for_parallel/ptest_third.rb1
-rw-r--r--test/testunit/tests_for_parallel/runner.rb1
-rw-r--r--test/thread/test_cv.rb1
-rw-r--r--test/thread/test_queue.rb1
-rw-r--r--test/thread/test_sync.rb1
-rw-r--r--test/uri/test_common.rb1
-rw-r--r--test/uri/test_ftp.rb1
-rw-r--r--test/uri/test_generic.rb1
-rw-r--r--test/uri/test_http.rb1
-rw-r--r--test/uri/test_ldap.rb1
-rw-r--r--test/uri/test_mailto.rb1
-rw-r--r--test/uri/test_parser.rb1
-rw-r--r--test/webrick/test_cgi.rb1
-rw-r--r--test/webrick/test_cookie.rb1
-rw-r--r--test/webrick/test_do_not_reverse_lookup.rb1
-rw-r--r--test/webrick/test_filehandler.rb1
-rw-r--r--test/webrick/test_htmlutils.rb1
-rw-r--r--test/webrick/test_httpauth.rb1
-rw-r--r--test/webrick/test_httpproxy.rb1
-rw-r--r--test/webrick/test_httprequest.rb1
-rw-r--r--test/webrick/test_httpresponse.rb1
-rw-r--r--test/webrick/test_httpserver.rb1
-rw-r--r--test/webrick/test_httputils.rb1
-rw-r--r--test/webrick/test_httpversion.rb1
-rw-r--r--test/webrick/test_server.rb1
-rw-r--r--test/webrick/test_utils.rb1
-rw-r--r--test/webrick/utils.rb1
-rw-r--r--test/win32ole/err_in_callback.rb1
-rw-r--r--test/win32ole/test_err_in_callback.rb1
-rw-r--r--test/win32ole/test_folderitem2_invokeverb.rb1
-rw-r--r--test/win32ole/test_nil2vtempty.rb1
-rw-r--r--test/win32ole/test_ole_methods.rb1
-rw-r--r--test/win32ole/test_propertyputref.rb1
-rw-r--r--test/win32ole/test_thread.rb1
-rw-r--r--test/win32ole/test_win32ole.rb1
-rw-r--r--test/win32ole/test_win32ole_event.rb1
-rw-r--r--test/win32ole/test_win32ole_method.rb1
-rw-r--r--test/win32ole/test_win32ole_param.rb1
-rw-r--r--test/win32ole/test_win32ole_record.rb1
-rw-r--r--test/win32ole/test_win32ole_type.rb1
-rw-r--r--test/win32ole/test_win32ole_typelib.rb1
-rw-r--r--test/win32ole/test_win32ole_variable.rb1
-rw-r--r--test/win32ole/test_win32ole_variant.rb1
-rw-r--r--test/win32ole/test_win32ole_variant_m.rb1
-rw-r--r--test/win32ole/test_win32ole_variant_outarg.rb1
-rw-r--r--test/win32ole/test_word.rb1
-rw-r--r--test/xmlrpc/test_client.rb1
-rw-r--r--test/xmlrpc/test_cookie.rb1
-rw-r--r--test/xmlrpc/test_datetime.rb1
-rw-r--r--test/xmlrpc/test_features.rb1
-rw-r--r--test/xmlrpc/test_marshal.rb1
-rw-r--r--test/xmlrpc/test_parser.rb1
-rw-r--r--test/xmlrpc/test_webrick_server.rb1
-rw-r--r--test/xmlrpc/webrick_testing.rb1
-rw-r--r--test/zlib/test_zlib.rb1
869 files changed, 870 insertions, 1 deletions
diff --git a/test/-ext-/array/test_resize.rb b/test/-ext-/array/test_resize.rb
index 8e526b5a0c4..f6a368cb755 100644
--- a/test/-ext-/array/test_resize.rb
+++ b/test/-ext-/array/test_resize.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require '-test-/array/resize'
diff --git a/test/-ext-/bignum/test_big2str.rb b/test/-ext-/bignum/test_big2str.rb
index 0af552ea709..4fae24eb345 100644
--- a/test/-ext-/bignum/test_big2str.rb
+++ b/test/-ext-/bignum/test_big2str.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/bignum"
diff --git a/test/-ext-/bignum/test_bigzero.rb b/test/-ext-/bignum/test_bigzero.rb
index f75c4590b86..8529e54456b 100644
--- a/test/-ext-/bignum/test_bigzero.rb
+++ b/test/-ext-/bignum/test_bigzero.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/bignum"
diff --git a/test/-ext-/bignum/test_div.rb b/test/-ext-/bignum/test_div.rb
index 9c1a3c3d2a9..9a8e93b0815 100644
--- a/test/-ext-/bignum/test_div.rb
+++ b/test/-ext-/bignum/test_div.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/bignum"
diff --git a/test/-ext-/bignum/test_mul.rb b/test/-ext-/bignum/test_mul.rb
index 3e78247aa45..103a00fbad2 100644
--- a/test/-ext-/bignum/test_mul.rb
+++ b/test/-ext-/bignum/test_mul.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/bignum"
diff --git a/test/-ext-/bignum/test_pack.rb b/test/-ext-/bignum/test_pack.rb
index f2a3df814e0..04bf3e02de1 100644
--- a/test/-ext-/bignum/test_pack.rb
+++ b/test/-ext-/bignum/test_pack.rb
@@ -1,4 +1,5 @@
# coding: ASCII-8BIT
+# frozen_string_literal: false
require 'test/unit'
require "-test-/bignum"
diff --git a/test/-ext-/bignum/test_str2big.rb b/test/-ext-/bignum/test_str2big.rb
index 4304be88e9f..3b5750154ea 100644
--- a/test/-ext-/bignum/test_str2big.rb
+++ b/test/-ext-/bignum/test_str2big.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/bignum"
diff --git a/test/-ext-/bug_reporter/test_bug_reporter.rb b/test/-ext-/bug_reporter/test_bug_reporter.rb
index e68adeef06f..fb37658c920 100644
--- a/test/-ext-/bug_reporter/test_bug_reporter.rb
+++ b/test/-ext-/bug_reporter/test_bug_reporter.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tmpdir'
diff --git a/test/-ext-/class/test_class2name.rb b/test/-ext-/class/test_class2name.rb
index 070be5a130f..e61964d9eb7 100644
--- a/test/-ext-/class/test_class2name.rb
+++ b/test/-ext-/class/test_class2name.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/class"
diff --git a/test/-ext-/debug/test_debug.rb b/test/-ext-/debug/test_debug.rb
index ec506e0ca52..3804714d0dc 100644
--- a/test/-ext-/debug/test_debug.rb
+++ b/test/-ext-/debug/test_debug.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require '-test-/debug'
diff --git a/test/-ext-/debug/test_profile_frames.rb b/test/-ext-/debug/test_profile_frames.rb
index e257ef09b3d..860652c0cdf 100644
--- a/test/-ext-/debug/test_profile_frames.rb
+++ b/test/-ext-/debug/test_profile_frames.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require '-test-/debug'
diff --git a/test/-ext-/exception/test_data_error.rb b/test/-ext-/exception/test_data_error.rb
index 53cbb28438f..d33d8ca43fd 100644
--- a/test/-ext-/exception/test_data_error.rb
+++ b/test/-ext-/exception/test_data_error.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
module Bug
diff --git a/test/-ext-/exception/test_enc_raise.rb b/test/-ext-/exception/test_enc_raise.rb
index a578b167ea8..2bc7f024135 100644
--- a/test/-ext-/exception/test_enc_raise.rb
+++ b/test/-ext-/exception/test_enc_raise.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require '-test-/exception'
diff --git a/test/-ext-/exception/test_ensured.rb b/test/-ext-/exception/test_ensured.rb
index 97d97941862..858245868b3 100644
--- a/test/-ext-/exception/test_ensured.rb
+++ b/test/-ext-/exception/test_ensured.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
module Bug
diff --git a/test/-ext-/file/test_stat.rb b/test/-ext-/file/test_stat.rb
index b9aa132932e..9eebcd97b9f 100644
--- a/test/-ext-/file/test_stat.rb
+++ b/test/-ext-/file/test_stat.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/file"
diff --git a/test/-ext-/float/test_nextafter.rb b/test/-ext-/float/test_nextafter.rb
index e3a3e726c7f..c131d1e4131 100644
--- a/test/-ext-/float/test_nextafter.rb
+++ b/test/-ext-/float/test_nextafter.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/float"
diff --git a/test/-ext-/funcall/test_passing_block.rb b/test/-ext-/funcall/test_passing_block.rb
index 87aed2212c8..fac7eaf9539 100644
--- a/test/-ext-/funcall/test_passing_block.rb
+++ b/test/-ext-/funcall/test_passing_block.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestFuncall < Test::Unit::TestCase
diff --git a/test/-ext-/gvl/test_last_thread.rb b/test/-ext-/gvl/test_last_thread.rb
index cf5f28f4b61..3b297a5b311 100644
--- a/test/-ext-/gvl/test_last_thread.rb
+++ b/test/-ext-/gvl/test_last_thread.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
class TestLastThread < Test::Unit::TestCase
# [Bug #11237]
diff --git a/test/-ext-/hash/test_delete.rb b/test/-ext-/hash/test_delete.rb
index 13f35954826..e2ad3cbdbc0 100644
--- a/test/-ext-/hash/test_delete.rb
+++ b/test/-ext-/hash/test_delete.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require '-test-/hash'
diff --git a/test/-ext-/iseq_load/test_iseq_load.rb b/test/-ext-/iseq_load/test_iseq_load.rb
index 5dfd69a8634..7eb8f4bfc84 100644
--- a/test/-ext-/iseq_load/test_iseq_load.rb
+++ b/test/-ext-/iseq_load/test_iseq_load.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestIseqLoad < Test::Unit::TestCase
diff --git a/test/-ext-/iter/test_iter_break.rb b/test/-ext-/iter/test_iter_break.rb
index 5bac6331fdb..8c2379960a9 100644
--- a/test/-ext-/iter/test_iter_break.rb
+++ b/test/-ext-/iter/test_iter_break.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require '-test-/iter'
diff --git a/test/-ext-/iter/test_yield_block.rb b/test/-ext-/iter/test_yield_block.rb
index bec993c9505..d4f1fa3c35a 100644
--- a/test/-ext-/iter/test_yield_block.rb
+++ b/test/-ext-/iter/test_yield_block.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require '-test-/iter'
diff --git a/test/-ext-/load/test_dot_dot.rb b/test/-ext-/load/test_dot_dot.rb
index 82aa10a95f0..1b2c8716089 100644
--- a/test/-ext-/load/test_dot_dot.rb
+++ b/test/-ext-/load/test_dot_dot.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class Test_DotDot < Test::Unit::TestCase
diff --git a/test/-ext-/marshal/test_internal_ivar.rb b/test/-ext-/marshal/test_internal_ivar.rb
index e0e2a72f543..51529667b52 100644
--- a/test/-ext-/marshal/test_internal_ivar.rb
+++ b/test/-ext-/marshal/test_internal_ivar.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require '-test-/marshal/internal_ivar'
diff --git a/test/-ext-/marshal/test_usrmarshal.rb b/test/-ext-/marshal/test_usrmarshal.rb
index 8d8db012aca..263dcb82974 100644
--- a/test/-ext-/marshal/test_usrmarshal.rb
+++ b/test/-ext-/marshal/test_usrmarshal.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require '-test-/marshal/usr'
diff --git a/test/-ext-/method/test_arity.rb b/test/-ext-/method/test_arity.rb
index 79ef23b34ff..d0032c6a50c 100644
--- a/test/-ext-/method/test_arity.rb
+++ b/test/-ext-/method/test_arity.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require '-test-/method'
require 'test/unit'
diff --git a/test/-ext-/num2int/test_num2int.rb b/test/-ext-/num2int/test_num2int.rb
index f5796599291..c00bb56833d 100644
--- a/test/-ext-/num2int/test_num2int.rb
+++ b/test/-ext-/num2int/test_num2int.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require '-test-/num2int/num2int'
diff --git a/test/-ext-/path_to_class/test_path_to_class.rb b/test/-ext-/path_to_class/test_path_to_class.rb
index fdf4097fde1..57e3a9233a5 100644
--- a/test/-ext-/path_to_class/test_path_to_class.rb
+++ b/test/-ext-/path_to_class/test_path_to_class.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class Test_PathToClass < Test::Unit::TestCase
diff --git a/test/-ext-/popen_deadlock/test_popen_deadlock.rb b/test/-ext-/popen_deadlock/test_popen_deadlock.rb
index 60ec6ccce43..97892e50083 100644
--- a/test/-ext-/popen_deadlock/test_popen_deadlock.rb
+++ b/test/-ext-/popen_deadlock/test_popen_deadlock.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require '-test-/popen_deadlock/infinite_loop_dlsym'
rescue LoadError
diff --git a/test/-ext-/postponed_job/test_postponed_job.rb b/test/-ext-/postponed_job/test_postponed_job.rb
index 032e35c055a..da3b579ebae 100644
--- a/test/-ext-/postponed_job/test_postponed_job.rb
+++ b/test/-ext-/postponed_job/test_postponed_job.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'thread'
require '-test-/postponed_job'
diff --git a/test/-ext-/proc/test_bmethod.rb b/test/-ext-/proc/test_bmethod.rb
index 16927dcf7d7..344f9757559 100644
--- a/test/-ext-/proc/test_bmethod.rb
+++ b/test/-ext-/proc/test_bmethod.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require '-test-/proc'
diff --git a/test/-ext-/rational/test_rat.rb b/test/-ext-/rational/test_rat.rb
index ef7e7fe535a..626ffb96611 100644
--- a/test/-ext-/rational/test_rat.rb
+++ b/test/-ext-/rational/test_rat.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/rational"
diff --git a/test/-ext-/st/test_foreach.rb b/test/-ext-/st/test_foreach.rb
index 259b0a93b12..4b3eb870e48 100644
--- a/test/-ext-/st/test_foreach.rb
+++ b/test/-ext-/st/test_foreach.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require '-test-/st/foreach'
diff --git a/test/-ext-/st/test_numhash.rb b/test/-ext-/st/test_numhash.rb
index 24dc87c1d9d..97c3a755bbc 100644
--- a/test/-ext-/st/test_numhash.rb
+++ b/test/-ext-/st/test_numhash.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/st/numhash"
diff --git a/test/-ext-/st/test_update.rb b/test/-ext-/st/test_update.rb
index 1b41d2bc03f..db86eeb8d7e 100644
--- a/test/-ext-/st/test_update.rb
+++ b/test/-ext-/st/test_update.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/st/update"
diff --git a/test/-ext-/string/test_coderange.rb b/test/-ext-/string/test_coderange.rb
index 31f5c871f56..18b256fcea3 100644
--- a/test/-ext-/string/test_coderange.rb
+++ b/test/-ext-/string/test_coderange.rb
@@ -1,4 +1,5 @@
# coding: ascii-8bit
+# frozen_string_literal: false
require 'test/unit'
require "-test-/string"
require "rbconfig/sizeof"
diff --git a/test/-ext-/string/test_cstr.rb b/test/-ext-/string/test_cstr.rb
index 4be2cc98fa2..f4ed520b2d5 100644
--- a/test/-ext-/string/test_cstr.rb
+++ b/test/-ext-/string/test_cstr.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/string"
diff --git a/test/-ext-/string/test_ellipsize.rb b/test/-ext-/string/test_ellipsize.rb
index 23ccdb515b2..d7947041d56 100644
--- a/test/-ext-/string/test_ellipsize.rb
+++ b/test/-ext-/string/test_ellipsize.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/string"
diff --git a/test/-ext-/string/test_enc_associate.rb b/test/-ext-/string/test_enc_associate.rb
index 2c84f49db18..4fad8e1cc87 100644
--- a/test/-ext-/string/test_enc_associate.rb
+++ b/test/-ext-/string/test_enc_associate.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/string"
diff --git a/test/-ext-/string/test_enc_str_buf_cat.rb b/test/-ext-/string/test_enc_str_buf_cat.rb
index c925affb419..72f903903c7 100644
--- a/test/-ext-/string/test_enc_str_buf_cat.rb
+++ b/test/-ext-/string/test_enc_str_buf_cat.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/string"
diff --git a/test/-ext-/string/test_fstring.rb b/test/-ext-/string/test_fstring.rb
index 3ad9a4c312e..39ed0208923 100644
--- a/test/-ext-/string/test_fstring.rb
+++ b/test/-ext-/string/test_fstring.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require '-test-/string'
diff --git a/test/-ext-/string/test_modify_expand.rb b/test/-ext-/string/test_modify_expand.rb
index cc19a47b917..5eb7a02b91a 100644
--- a/test/-ext-/string/test_modify_expand.rb
+++ b/test/-ext-/string/test_modify_expand.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/string"
diff --git a/test/-ext-/string/test_nofree.rb b/test/-ext-/string/test_nofree.rb
index cb034a4b8f6..86681e46523 100644
--- a/test/-ext-/string/test_nofree.rb
+++ b/test/-ext-/string/test_nofree.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class Test_StringNoFree < Test::Unit::TestCase
diff --git a/test/-ext-/string/test_normalize.rb b/test/-ext-/string/test_normalize.rb
index b270a450058..8c11bfe3d42 100644
--- a/test/-ext-/string/test_normalize.rb
+++ b/test/-ext-/string/test_normalize.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/string"
require "tempfile"
diff --git a/test/-ext-/string/test_qsort.rb b/test/-ext-/string/test_qsort.rb
index 1a6dae0124b..94aff8c3c45 100644
--- a/test/-ext-/string/test_qsort.rb
+++ b/test/-ext-/string/test_qsort.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/string"
diff --git a/test/-ext-/string/test_set_len.rb b/test/-ext-/string/test_set_len.rb
index 198129d72ff..1c5252a5f65 100644
--- a/test/-ext-/string/test_set_len.rb
+++ b/test/-ext-/string/test_set_len.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/string"
diff --git a/test/-ext-/struct/test_member.rb b/test/-ext-/struct/test_member.rb
index 18e98085a07..5ee0adcf676 100644
--- a/test/-ext-/struct/test_member.rb
+++ b/test/-ext-/struct/test_member.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/struct"
diff --git a/test/-ext-/symbol/test_inadvertent_creation.rb b/test/-ext-/symbol/test_inadvertent_creation.rb
index 14afc90d740..073952fae33 100644
--- a/test/-ext-/symbol/test_inadvertent_creation.rb
+++ b/test/-ext-/symbol/test_inadvertent_creation.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/symbol"
diff --git a/test/-ext-/symbol/test_type.rb b/test/-ext-/symbol/test_type.rb
index ddd79561ab7..32a700d2732 100644
--- a/test/-ext-/symbol/test_type.rb
+++ b/test/-ext-/symbol/test_type.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/symbol"
diff --git a/test/-ext-/test_bug-3571.rb b/test/-ext-/test_bug-3571.rb
index d7c26d1ff0f..dc9c92bd233 100644
--- a/test/-ext-/test_bug-3571.rb
+++ b/test/-ext-/test_bug-3571.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class Test_BUG_3571 < Test::Unit::TestCase
diff --git a/test/-ext-/test_bug-5832.rb b/test/-ext-/test_bug-5832.rb
index 11f8a52a95c..6812e64e5e5 100644
--- a/test/-ext-/test_bug-5832.rb
+++ b/test/-ext-/test_bug-5832.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require '-test-/bug-5832/bug'
class Test_BUG_5832 < Test::Unit::TestCase
diff --git a/test/-ext-/test_notimplement.rb b/test/-ext-/test_notimplement.rb
index 7394126fb16..0eba7bdaf8c 100644
--- a/test/-ext-/test_notimplement.rb
+++ b/test/-ext-/test_notimplement.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require '-test-/notimplement'
class TestNotImplement < Test::Unit::TestCase
diff --git a/test/-ext-/test_printf.rb b/test/-ext-/test_printf.rb
index 1f06ad6300c..4e4f5b46951 100644
--- a/test/-ext-/test_printf.rb
+++ b/test/-ext-/test_printf.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/printf"
require_relative '../ruby/allpairs'
diff --git a/test/-ext-/test_recursion.rb b/test/-ext-/test_recursion.rb
index 06faf6dc7a5..db7a8539886 100644
--- a/test/-ext-/test_recursion.rb
+++ b/test/-ext-/test_recursion.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
require 'test/unit'
class TestRecursion < Test::Unit::TestCase
diff --git a/test/-ext-/time/test_new.rb b/test/-ext-/time/test_new.rb
index 5ccf6f0a5d9..699201fda59 100644
--- a/test/-ext-/time/test_new.rb
+++ b/test/-ext-/time/test_new.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/time"
diff --git a/test/-ext-/tracepoint/test_tracepoint.rb b/test/-ext-/tracepoint/test_tracepoint.rb
index b5a6e769d6a..33d0c3e8e15 100644
--- a/test/-ext-/tracepoint/test_tracepoint.rb
+++ b/test/-ext-/tracepoint/test_tracepoint.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require '-test-/tracepoint'
diff --git a/test/-ext-/typeddata/test_typeddata.rb b/test/-ext-/typeddata/test_typeddata.rb
index 31fe32b20a4..058b7b70c5e 100644
--- a/test/-ext-/typeddata/test_typeddata.rb
+++ b/test/-ext-/typeddata/test_typeddata.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "-test-/typeddata/typeddata"
diff --git a/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb b/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
index e88dbefac69..d9fc52ebb22 100644
--- a/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
+++ b/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestWaitForSingleFD < Test::Unit::TestCase
diff --git a/test/-ext-/win32/test_console_attr.rb b/test/-ext-/win32/test_console_attr.rb
index 3afb2d93789..e596e13469c 100644
--- a/test/-ext-/win32/test_console_attr.rb
+++ b/test/-ext-/win32/test_console_attr.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
if /mswin|mingw/ =~ RUBY_PLATFORM and STDOUT.tty?
require '-test-/win32/console'
require 'io/console'
diff --git a/test/-ext-/win32/test_dln.rb b/test/-ext-/win32/test_dln.rb
index fe289d150f9..fd5e453719e 100644
--- a/test/-ext-/win32/test_dln.rb
+++ b/test/-ext-/win32/test_dln.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tmpdir'
require 'rbconfig'
diff --git a/test/-ext-/win32/test_fd_setsize.rb b/test/-ext-/win32/test_fd_setsize.rb
index 6fe889c941d..4c64376f156 100644
--- a/test/-ext-/win32/test_fd_setsize.rb
+++ b/test/-ext-/win32/test_fd_setsize.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
module Bug
diff --git a/test/base64/test_base64.rb b/test/base64/test_base64.rb
index c2cd60adcd0..8e11bef9a69 100644
--- a/test/base64/test_base64.rb
+++ b/test/base64/test_base64.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require "test/unit"
require "base64"
diff --git a/test/benchmark/test_benchmark.rb b/test/benchmark/test_benchmark.rb
index 1b9964eafa6..2db148304c5 100644
--- a/test/benchmark/test_benchmark.rb
+++ b/test/benchmark/test_benchmark.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'benchmark'
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb
index edbaa163b45..f10c50b47a9 100644
--- a/test/bigdecimal/test_bigdecimal.rb
+++ b/test/bigdecimal/test_bigdecimal.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "testbase"
require 'bigdecimal/math'
diff --git a/test/bigdecimal/test_bigdecimal_util.rb b/test/bigdecimal/test_bigdecimal_util.rb
index e4d64006ab1..c3a45b2eeea 100644
--- a/test/bigdecimal/test_bigdecimal_util.rb
+++ b/test/bigdecimal/test_bigdecimal_util.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "testbase"
require 'bigdecimal/util'
diff --git a/test/bigdecimal/test_bigmath.rb b/test/bigdecimal/test_bigmath.rb
index 740c755eae6..6f271d0960f 100644
--- a/test/bigdecimal/test_bigmath.rb
+++ b/test/bigdecimal/test_bigmath.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "testbase"
require "bigdecimal/math"
diff --git a/test/bigdecimal/testbase.rb b/test/bigdecimal/testbase.rb
index c014e61e92c..22b05f09ae4 100644
--- a/test/bigdecimal/testbase.rb
+++ b/test/bigdecimal/testbase.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "bigdecimal"
diff --git a/test/cgi/test_cgi_cookie.rb b/test/cgi/test_cgi_cookie.rb
index eee6215facf..ae7b14a4ddd 100644
--- a/test/cgi/test_cgi_cookie.rb
+++ b/test/cgi/test_cgi_cookie.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'cgi'
require 'stringio'
diff --git a/test/cgi/test_cgi_core.rb b/test/cgi/test_cgi_core.rb
index 68e008d3f12..97308a04573 100644
--- a/test/cgi/test_cgi_core.rb
+++ b/test/cgi/test_cgi_core.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'cgi'
require 'stringio'
diff --git a/test/cgi/test_cgi_header.rb b/test/cgi/test_cgi_header.rb
index 91086c4f275..b1a0b41856b 100644
--- a/test/cgi/test_cgi_header.rb
+++ b/test/cgi/test_cgi_header.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'cgi'
require 'time'
diff --git a/test/cgi/test_cgi_modruby.rb b/test/cgi/test_cgi_modruby.rb
index ed1d519bae9..9813a95277e 100644
--- a/test/cgi/test_cgi_modruby.rb
+++ b/test/cgi/test_cgi_modruby.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'cgi'
require_relative 'update_env'
diff --git a/test/cgi/test_cgi_multipart.rb b/test/cgi/test_cgi_multipart.rb
index b3df6948491..f63c2e37780 100644
--- a/test/cgi/test_cgi_multipart.rb
+++ b/test/cgi/test_cgi_multipart.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'cgi'
require 'tempfile'
diff --git a/test/cgi/test_cgi_session.rb b/test/cgi/test_cgi_session.rb
index c2d7bdc60dc..59e8d4c15bb 100644
--- a/test/cgi/test_cgi_session.rb
+++ b/test/cgi/test_cgi_session.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'cgi'
require 'cgi/session'
diff --git a/test/cgi/test_cgi_tag_helper.rb b/test/cgi/test_cgi_tag_helper.rb
index cc119cb1bcc..a48bafdaecc 100644
--- a/test/cgi/test_cgi_tag_helper.rb
+++ b/test/cgi/test_cgi_tag_helper.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'cgi'
require 'stringio'
diff --git a/test/cgi/test_cgi_util.rb b/test/cgi/test_cgi_util.rb
index 2c5182b524f..5662a30eff9 100644
--- a/test/cgi/test_cgi_util.rb
+++ b/test/cgi/test_cgi_util.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'cgi'
require 'stringio'
diff --git a/test/cgi/update_env.rb b/test/cgi/update_env.rb
index 0cd926d7af4..cbc8dc13c6e 100644
--- a/test/cgi/update_env.rb
+++ b/test/cgi/update_env.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module UpdateEnv
def update_env(environ)
environ.each do |key, val|
diff --git a/test/coverage/test_coverage.rb b/test/coverage/test_coverage.rb
index b7a7ea7dab2..4870b1006ad 100644
--- a/test/coverage/test_coverage.rb
+++ b/test/coverage/test_coverage.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "coverage"
require "tmpdir"
diff --git a/test/csv/base.rb b/test/csv/base.rb
index 621569e0131..a282c7afed5 100644
--- a/test/csv/base.rb
+++ b/test/csv/base.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "csv"
diff --git a/test/csv/test_csv_parsing.rb b/test/csv/test_csv_parsing.rb
index 319f3f392f6..ff3d65fd242 100755
--- a/test/csv/test_csv_parsing.rb
+++ b/test/csv/test_csv_parsing.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby -w
# encoding: UTF-8
+# frozen_string_literal: false
# tc_csv_parsing.rb
#
diff --git a/test/csv/test_csv_writing.rb b/test/csv/test_csv_writing.rb
index 704c1d7ddc3..de82dae2440 100755
--- a/test/csv/test_csv_writing.rb
+++ b/test/csv/test_csv_writing.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby -w
# encoding: UTF-8
+# frozen_string_literal: false
# tc_csv_writing.rb
#
diff --git a/test/csv/test_data_converters.rb b/test/csv/test_data_converters.rb
index 89b6dd1dfd1..70f996360ce 100755
--- a/test/csv/test_data_converters.rb
+++ b/test/csv/test_data_converters.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby -w
# encoding: UTF-8
+# frozen_string_literal: false
# tc_data_converters.rb
#
diff --git a/test/csv/test_encodings.rb b/test/csv/test_encodings.rb
index dc45692ce48..7460a3ff34b 100755
--- a/test/csv/test_encodings.rb
+++ b/test/csv/test_encodings.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby -w
# encoding: UTF-8
+# frozen_string_literal: false
# tc_encodings.rb
#
diff --git a/test/csv/test_features.rb b/test/csv/test_features.rb
index e31465710b5..37fdab8636d 100755
--- a/test/csv/test_features.rb
+++ b/test/csv/test_features.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby -w
# encoding: UTF-8
+# frozen_string_literal: false
# tc_features.rb
#
diff --git a/test/csv/test_headers.rb b/test/csv/test_headers.rb
index 79ccd20c749..d8a1c15836f 100755
--- a/test/csv/test_headers.rb
+++ b/test/csv/test_headers.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby -w
# encoding: UTF-8
+# frozen_string_literal: false
# tc_headers.rb
#
diff --git a/test/csv/test_interface.rb b/test/csv/test_interface.rb
index d6bf470f6bf..a12545c8b05 100755
--- a/test/csv/test_interface.rb
+++ b/test/csv/test_interface.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby -w
# encoding: UTF-8
+# frozen_string_literal: false
# tc_interface.rb
#
diff --git a/test/csv/test_row.rb b/test/csv/test_row.rb
index a8aeb288fc1..1fa15d392ad 100755
--- a/test/csv/test_row.rb
+++ b/test/csv/test_row.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby -w
# encoding: UTF-8
+# frozen_string_literal: false
# tc_row.rb
#
diff --git a/test/csv/test_table.rb b/test/csv/test_table.rb
index 7d2148c379c..80e553e83f3 100755
--- a/test/csv/test_table.rb
+++ b/test/csv/test_table.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby -w
# encoding: UTF-8
+# frozen_string_literal: false
# tc_table.rb
#
diff --git a/test/csv/ts_all.rb b/test/csv/ts_all.rb
index 389384168b8..9eadf129184 100644
--- a/test/csv/ts_all.rb
+++ b/test/csv/ts_all.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby -w
# encoding: UTF-8
+# frozen_string_literal: false
# ts_all.rb
#
diff --git a/test/date/test_date.rb b/test/date/test_date.rb
index 3d8bf868c41..3bb1f4a4c7c 100644
--- a/test/date/test_date.rb
+++ b/test/date/test_date.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'date'
diff --git a/test/date/test_date_arith.rb b/test/date/test_date_arith.rb
index 7b79c180978..f5ac5bf30b4 100644
--- a/test/date/test_date_arith.rb
+++ b/test/date/test_date_arith.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'date'
diff --git a/test/date/test_date_attr.rb b/test/date/test_date_attr.rb
index bc6bec2a804..3d1b0a2e6e2 100644
--- a/test/date/test_date_attr.rb
+++ b/test/date/test_date_attr.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'date'
diff --git a/test/date/test_date_base.rb b/test/date/test_date_base.rb
index 1f3d8c0a554..06fec19e52e 100644
--- a/test/date/test_date_base.rb
+++ b/test/date/test_date_base.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'date'
diff --git a/test/date/test_date_compat.rb b/test/date/test_date_compat.rb
index 8284007407c..1bd30b5f808 100644
--- a/test/date/test_date_compat.rb
+++ b/test/date/test_date_compat.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'date'
diff --git a/test/date/test_date_conv.rb b/test/date/test_date_conv.rb
index daf0374294e..8b99970dd7e 100644
--- a/test/date/test_date_conv.rb
+++ b/test/date/test_date_conv.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'date'
diff --git a/test/date/test_date_marshal.rb b/test/date/test_date_marshal.rb
index 4ea5565716e..27ae1e90044 100644
--- a/test/date/test_date_marshal.rb
+++ b/test/date/test_date_marshal.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'date'
diff --git a/test/date/test_date_new.rb b/test/date/test_date_new.rb
index 0bbbfee44ba..80ecbc204e0 100644
--- a/test/date/test_date_new.rb
+++ b/test/date/test_date_new.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'date'
diff --git a/test/date/test_date_parse.rb b/test/date/test_date_parse.rb
index e0cd6025a8a..d980674591c 100644
--- a/test/date/test_date_parse.rb
+++ b/test/date/test_date_parse.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'date'
diff --git a/test/date/test_date_strftime.rb b/test/date/test_date_strftime.rb
index 0ed9215e1ec..7472a4323d1 100644
--- a/test/date/test_date_strftime.rb
+++ b/test/date/test_date_strftime.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'date'
diff --git a/test/date/test_date_strptime.rb b/test/date/test_date_strptime.rb
index ae149bb8d84..15fdc949f56 100644
--- a/test/date/test_date_strptime.rb
+++ b/test/date/test_date_strptime.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'date'
diff --git a/test/date/test_switch_hitter.rb b/test/date/test_switch_hitter.rb
index 08e23015dcf..931d736edf1 100644
--- a/test/date/test_switch_hitter.rb
+++ b/test/date/test_switch_hitter.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'date'
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb
index c783b497d89..cd8c3fd8d38 100644
--- a/test/dbm/test_dbm.rb
+++ b/test/dbm/test_dbm.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tmpdir'
diff --git a/test/digest/digest/foo.rb b/test/digest/digest/foo.rb
index d576ef00e08..6d42b003fb0 100644
--- a/test/digest/digest/foo.rb
+++ b/test/digest/digest/foo.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module Digest
Foo = nil
diff --git a/test/digest/test_digest.rb b/test/digest/test_digest.rb
index ccf0a26b900..039c1701cb6 100644
--- a/test/digest/test_digest.rb
+++ b/test/digest/test_digest.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# $RoughId: test.rb,v 1.4 2001/07/13 15:38:27 knu Exp $
# $Id$
diff --git a/test/digest/test_digest_extend.rb b/test/digest/test_digest_extend.rb
index 46158a670c2..9dd026b5e33 100644
--- a/test/digest/test_digest_extend.rb
+++ b/test/digest/test_digest_extend.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'digest'
require_relative '../lib/with_different_ofs.rb'
diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb
index 11b542a4ee2..4488e1be217 100644
--- a/test/drb/drbtest.rb
+++ b/test/drb/drbtest.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'drb/drb'
require 'drb/extservm'
diff --git a/test/drb/ignore_test_drb.rb b/test/drb/ignore_test_drb.rb
index 8b946505341..996a554c0fe 100644
--- a/test/drb/ignore_test_drb.rb
+++ b/test/drb/ignore_test_drb.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'drbtest'
module DRbTests
diff --git a/test/drb/test_acl.rb b/test/drb/test_acl.rb
index a1ee1d48c53..c886ae2396b 100644
--- a/test/drb/test_acl.rb
+++ b/test/drb/test_acl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# acltest.rb - ACL unit test
# Copyright (c) 2000 Masatoshi SEKI
#
diff --git a/test/drb/test_drb.rb b/test/drb/test_drb.rb
index 016e62f7c6a..dd2855e3b0d 100644
--- a/test/drb/test_drb.rb
+++ b/test/drb/test_drb.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'drbtest'
module DRbTests
diff --git a/test/drb/test_drbssl.rb b/test/drb/test_drbssl.rb
index bcf5f9034ac..1f1495356e0 100644
--- a/test/drb/test_drbssl.rb
+++ b/test/drb/test_drbssl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'drbtest'
begin
diff --git a/test/drb/test_drbunix.rb b/test/drb/test_drbunix.rb
index c422b7a6898..7ece2453a94 100644
--- a/test/drb/test_drbunix.rb
+++ b/test/drb/test_drbunix.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'drbtest'
begin
diff --git a/test/drb/ut_array.rb b/test/drb/ut_array.rb
index 01599f1d89e..d13dda3d8e5 100644
--- a/test/drb/ut_array.rb
+++ b/test/drb/ut_array.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'drb/drb'
require 'drb/extserv'
diff --git a/test/drb/ut_array_drbssl.rb b/test/drb/ut_array_drbssl.rb
index fa9afa6abd5..08849ca176d 100644
--- a/test/drb/ut_array_drbssl.rb
+++ b/test/drb/ut_array_drbssl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'drb/drb'
require 'drb/extserv'
require 'drb/ssl'
diff --git a/test/drb/ut_array_drbunix.rb b/test/drb/ut_array_drbunix.rb
index dd397907c7d..b656cdaddd8 100644
--- a/test/drb/ut_array_drbunix.rb
+++ b/test/drb/ut_array_drbunix.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'drb/drb'
require 'drb/extserv'
diff --git a/test/drb/ut_drb.rb b/test/drb/ut_drb.rb
index 0dd0988a7da..6a94a0fb401 100644
--- a/test/drb/ut_drb.rb
+++ b/test/drb/ut_drb.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'drb/drb'
require 'drb/extserv'
require 'timeout'
diff --git a/test/drb/ut_drb_drbssl.rb b/test/drb/ut_drb_drbssl.rb
index b6d1c122625..ddaa859e7de 100644
--- a/test/drb/ut_drb_drbssl.rb
+++ b/test/drb/ut_drb_drbssl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "ut_drb"
require 'drb/ssl'
diff --git a/test/drb/ut_drb_drbunix.rb b/test/drb/ut_drb_drbunix.rb
index c997d2469d0..ecf0920451a 100644
--- a/test/drb/ut_drb_drbunix.rb
+++ b/test/drb/ut_drb_drbunix.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "#{File.dirname(File.expand_path(__FILE__))}/ut_drb"
if __FILE__ == $0
diff --git a/test/drb/ut_eq.rb b/test/drb/ut_eq.rb
index cc86158363a..56285a384f3 100644
--- a/test/drb/ut_eq.rb
+++ b/test/drb/ut_eq.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'drb/drb'
require 'drb/extserv'
diff --git a/test/drb/ut_eval.rb b/test/drb/ut_eval.rb
index c456790fd9f..0a81b40b0ef 100644
--- a/test/drb/ut_eval.rb
+++ b/test/drb/ut_eval.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'drb/drb'
require 'drb/extserv'
diff --git a/test/drb/ut_large.rb b/test/drb/ut_large.rb
index c2fbd3e1849..c00279e7cb3 100644
--- a/test/drb/ut_large.rb
+++ b/test/drb/ut_large.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'drb/drb'
require 'drb/extserv'
require 'timeout'
diff --git a/test/drb/ut_port.rb b/test/drb/ut_port.rb
index 3009db5acdd..d317a307cc1 100644
--- a/test/drb/ut_port.rb
+++ b/test/drb/ut_port.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'drb/drb'
require 'drb/extserv'
diff --git a/test/drb/ut_safe1.rb b/test/drb/ut_safe1.rb
index 43eb367689d..4b16fa7d6d8 100644
--- a/test/drb/ut_safe1.rb
+++ b/test/drb/ut_safe1.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'drb/drb'
require 'drb/extserv'
diff --git a/test/drb/ut_timerholder.rb b/test/drb/ut_timerholder.rb
index 6c62ea7726a..1b992d95f3b 100644
--- a/test/drb/ut_timerholder.rb
+++ b/test/drb/ut_timerholder.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'runit/testcase'
require 'runit/cui/testrunner'
require 'timerholder'
diff --git a/test/dtrace/dummy.rb b/test/dtrace/dummy.rb
index e85614228c9..932cb4e625a 100644
--- a/test/dtrace/dummy.rb
+++ b/test/dtrace/dummy.rb
@@ -1 +1,2 @@
+# frozen_string_literal: false
# this is a dummy file used by test/dtrace/test_require.rb
diff --git a/test/dtrace/helper.rb b/test/dtrace/helper.rb
index f76c41b0251..a479b1adb7b 100644
--- a/test/dtrace/helper.rb
+++ b/test/dtrace/helper.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
require 'test/unit'
require 'tempfile'
diff --git a/test/dtrace/test_array_create.rb b/test/dtrace/test_array_create.rb
index d849bcc0c71..44d4657b61c 100644
--- a/test/dtrace/test_array_create.rb
+++ b/test/dtrace/test_array_create.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module DTrace
diff --git a/test/dtrace/test_cmethod.rb b/test/dtrace/test_cmethod.rb
index 0a9107fa38a..a0aa1b646ba 100644
--- a/test/dtrace/test_cmethod.rb
+++ b/test/dtrace/test_cmethod.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module DTrace
diff --git a/test/dtrace/test_function_entry.rb b/test/dtrace/test_function_entry.rb
index 74aee64b02b..fc07ccc4550 100644
--- a/test/dtrace/test_function_entry.rb
+++ b/test/dtrace/test_function_entry.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module DTrace
diff --git a/test/dtrace/test_gc.rb b/test/dtrace/test_gc.rb
index 2f58a110967..77de7998dd0 100644
--- a/test/dtrace/test_gc.rb
+++ b/test/dtrace/test_gc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module DTrace
diff --git a/test/dtrace/test_hash_create.rb b/test/dtrace/test_hash_create.rb
index 2cceded38f4..83a4d0062cf 100644
--- a/test/dtrace/test_hash_create.rb
+++ b/test/dtrace/test_hash_create.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module DTrace
diff --git a/test/dtrace/test_load.rb b/test/dtrace/test_load.rb
index cceb0c29259..1c208bd488c 100644
--- a/test/dtrace/test_load.rb
+++ b/test/dtrace/test_load.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
require 'tempfile'
diff --git a/test/dtrace/test_method_cache.rb b/test/dtrace/test_method_cache.rb
index d8ddf454f44..7ecec194b2c 100644
--- a/test/dtrace/test_method_cache.rb
+++ b/test/dtrace/test_method_cache.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module DTrace
diff --git a/test/dtrace/test_object_create_start.rb b/test/dtrace/test_object_create_start.rb
index 2be96116136..81f8ed21104 100644
--- a/test/dtrace/test_object_create_start.rb
+++ b/test/dtrace/test_object_create_start.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module DTrace
diff --git a/test/dtrace/test_raise.rb b/test/dtrace/test_raise.rb
index 48fdbf14d1e..81e64e8c16f 100644
--- a/test/dtrace/test_raise.rb
+++ b/test/dtrace/test_raise.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module DTrace
diff --git a/test/dtrace/test_require.rb b/test/dtrace/test_require.rb
index 46a1d7652a6..9fa6c0e87c7 100644
--- a/test/dtrace/test_require.rb
+++ b/test/dtrace/test_require.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module DTrace
diff --git a/test/dtrace/test_singleton_function.rb b/test/dtrace/test_singleton_function.rb
index 9e118f65b7a..3698a02c93e 100644
--- a/test/dtrace/test_singleton_function.rb
+++ b/test/dtrace/test_singleton_function.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module DTrace
diff --git a/test/dtrace/test_string.rb b/test/dtrace/test_string.rb
index 873d5ac3645..407280b1fc4 100644
--- a/test/dtrace/test_string.rb
+++ b/test/dtrace/test_string.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'helper'
module DTrace
diff --git a/test/erb/test_erb.rb b/test/erb/test_erb.rb
index 1f1253fd23f..4e2d49a866a 100644
--- a/test/erb/test_erb.rb
+++ b/test/erb/test_erb.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
require 'test/unit'
require 'erb'
diff --git a/test/erb/test_erb_command.rb b/test/erb/test_erb_command.rb
index abc8fdbe25e..406b14cdb3f 100644
--- a/test/erb/test_erb_command.rb
+++ b/test/erb/test_erb_command.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
require 'test/unit'
class TestErbCommand < Test::Unit::TestCase
diff --git a/test/erb/test_erb_m17n.rb b/test/erb/test_erb_m17n.rb
index f60dd103f61..a7840c9605d 100644
--- a/test/erb/test_erb_m17n.rb
+++ b/test/erb/test_erb_m17n.rb
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
require 'test/unit'
require 'erb'
diff --git a/test/etc/test_etc.rb b/test/etc/test_etc.rb
index 5ac09a781bc..ec9083eb160 100644
--- a/test/etc/test_etc.rb
+++ b/test/etc/test_etc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "etc"
diff --git a/test/excludes/TestException.rb b/test/excludes/TestException.rb
index 78ee4ca1c02..a992950152b 100644
--- a/test/excludes/TestException.rb
+++ b/test/excludes/TestException.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
reason = %[\
Because machine stack overflow can happen anywhere, even critical
sections including external libraries, it is very neary impossible to
diff --git a/test/excludes/TestIO_Console.rb b/test/excludes/TestIO_Console.rb
index 26780c01b12..caf1935fece 100644
--- a/test/excludes/TestIO_Console.rb
+++ b/test/excludes/TestIO_Console.rb
@@ -1 +1,2 @@
+# frozen_string_literal: false
exclude(:test_getpass, 'not portable')
diff --git a/test/excludes/TestThread.rb b/test/excludes/TestThread.rb
index 0b4050b4ebb..ea73a4c0102 100644
--- a/test/excludes/TestThread.rb
+++ b/test/excludes/TestThread.rb
@@ -1 +1,2 @@
+# frozen_string_literal: false
exclude(/_stack_size$/, 'often too expensive')
diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb
index 0952cc24388..1da3d938194 100644
--- a/test/fiddle/helper.rb
+++ b/test/fiddle/helper.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'minitest/autorun'
require 'fiddle'
diff --git a/test/fiddle/test_c_struct_entry.rb b/test/fiddle/test_c_struct_entry.rb
index de5449b43da..39b7aeff996 100644
--- a/test/fiddle/test_c_struct_entry.rb
+++ b/test/fiddle/test_c_struct_entry.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require_relative 'helper'
require 'fiddle/struct'
diff --git a/test/fiddle/test_c_union_entity.rb b/test/fiddle/test_c_union_entity.rb
index 165c4ecacba..3c4d538ff1b 100644
--- a/test/fiddle/test_c_union_entity.rb
+++ b/test/fiddle/test_c_union_entity.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require_relative 'helper'
require 'fiddle/struct'
diff --git a/test/fiddle/test_closure.rb b/test/fiddle/test_closure.rb
index 56839e7b631..0e3574ff84e 100644
--- a/test/fiddle/test_closure.rb
+++ b/test/fiddle/test_closure.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require_relative 'helper'
rescue LoadError
diff --git a/test/fiddle/test_cparser.rb b/test/fiddle/test_cparser.rb
index 4d4799d8d64..16134f5aa72 100644
--- a/test/fiddle/test_cparser.rb
+++ b/test/fiddle/test_cparser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require_relative 'helper'
require 'fiddle/cparser'
diff --git a/test/fiddle/test_fiddle.rb b/test/fiddle/test_fiddle.rb
index 4c6ab97b12e..cf4839af860 100644
--- a/test/fiddle/test_fiddle.rb
+++ b/test/fiddle/test_fiddle.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require_relative 'helper'
rescue LoadError
diff --git a/test/fiddle/test_func.rb b/test/fiddle/test_func.rb
index 529aaa8baf2..5cdf90f5679 100644
--- a/test/fiddle/test_func.rb
+++ b/test/fiddle/test_func.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require_relative 'helper'
rescue LoadError
diff --git a/test/fiddle/test_function.rb b/test/fiddle/test_function.rb
index 9351f961df6..06d0eb2b509 100644
--- a/test/fiddle/test_function.rb
+++ b/test/fiddle/test_function.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require_relative 'helper'
rescue LoadError
diff --git a/test/fiddle/test_handle.rb b/test/fiddle/test_handle.rb
index 54165f00afa..f14357c6cb6 100644
--- a/test/fiddle/test_handle.rb
+++ b/test/fiddle/test_handle.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require_relative 'helper'
rescue LoadError
diff --git a/test/fiddle/test_import.rb b/test/fiddle/test_import.rb
index c83f50fe447..ba68296fd05 100644
--- a/test/fiddle/test_import.rb
+++ b/test/fiddle/test_import.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
begin
require_relative 'helper'
require 'fiddle/import'
diff --git a/test/fiddle/test_pointer.rb b/test/fiddle/test_pointer.rb
index ef54470943f..ec677324eb8 100644
--- a/test/fiddle/test_pointer.rb
+++ b/test/fiddle/test_pointer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require_relative 'helper'
rescue LoadError
diff --git a/test/fileutils/clobber.rb b/test/fileutils/clobber.rb
index 9f946651bfa..ae416e9fa58 100644
--- a/test/fileutils/clobber.rb
+++ b/test/fileutils/clobber.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'fileutils'
require 'test/unit'
require 'tmpdir'
diff --git a/test/fileutils/fileasserts.rb b/test/fileutils/fileasserts.rb
index b6067f6d848..512d31e95f7 100644
--- a/test/fileutils/fileasserts.rb
+++ b/test/fileutils/fileasserts.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# $Id$
module Test
diff --git a/test/fileutils/test_dryrun.rb b/test/fileutils/test_dryrun.rb
index 03f6bed387b..bc59f8d339a 100644
--- a/test/fileutils/test_dryrun.rb
+++ b/test/fileutils/test_dryrun.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# $Id$
require 'fileutils'
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb
index 1a6f1c5c55e..f5ca9d21e2d 100644
--- a/test/fileutils/test_fileutils.rb
+++ b/test/fileutils/test_fileutils.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# $Id$
require 'fileutils'
diff --git a/test/fileutils/test_nowrite.rb b/test/fileutils/test_nowrite.rb
index 946eed3b6cd..f331d51e46e 100644
--- a/test/fileutils/test_nowrite.rb
+++ b/test/fileutils/test_nowrite.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# $Id$
require 'fileutils'
diff --git a/test/fileutils/test_verbose.rb b/test/fileutils/test_verbose.rb
index fb069bcf14e..1daf9f05318 100644
--- a/test/fileutils/test_verbose.rb
+++ b/test/fileutils/test_verbose.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# $Id$
require 'test/unit'
diff --git a/test/fileutils/visibility_tests.rb b/test/fileutils/visibility_tests.rb
index a1406146748..6bb5a9fc8fe 100644
--- a/test/fileutils/visibility_tests.rb
+++ b/test/fileutils/visibility_tests.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'fileutils'
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb
index 729424dec53..0a42da386cc 100644
--- a/test/gdbm/test_gdbm.rb
+++ b/test/gdbm/test_gdbm.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'gdbm'
rescue LoadError
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index ba9063e1b33..36619cebd54 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'io/console'
require 'test/unit'
diff --git a/test/io/nonblock/test_flush.rb b/test/io/nonblock/test_flush.rb
index 70e65cceedf..bc60cab8bf5 100644
--- a/test/io/nonblock/test_flush.rb
+++ b/test/io/nonblock/test_flush.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'timeout'
begin
diff --git a/test/io/wait/test_io_wait.rb b/test/io/wait/test_io_wait.rb
index bef4731ae53..637917d5104 100644
--- a/test/io/wait/test_io_wait.rb
+++ b/test/io/wait/test_io_wait.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
require 'test/unit'
require 'timeout'
require 'socket'
diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb
index eeeda1234c6..608c41bad9f 100644
--- a/test/irb/test_completion.rb
+++ b/test/irb/test_completion.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
module TestIRB
diff --git a/test/irb/test_option.rb b/test/irb/test_option.rb
index a7dd663112c..85ebd085ca2 100644
--- a/test/irb/test_option.rb
+++ b/test/irb/test_option.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
module TestIRB
diff --git a/test/irb/test_raise_no_backtrace_exception.rb b/test/irb/test_raise_no_backtrace_exception.rb
index 67fb5b66ccc..d3882a427c0 100644
--- a/test/irb/test_raise_no_backtrace_exception.rb
+++ b/test/irb/test_raise_no_backtrace_exception.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
module TestIRB
diff --git a/test/json/setup_variant.rb b/test/json/setup_variant.rb
index 2dab184bc42..f7fb2a1d563 100644
--- a/test/json/setup_variant.rb
+++ b/test/json/setup_variant.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
case ENV['JSON']
when 'pure'
$:.unshift 'lib'
diff --git a/test/json/test_json.rb b/test/json/test_json.rb
index 07287eed816..8fe94599784 100755
--- a/test/json/test_json.rb
+++ b/test/json/test_json.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby
# encoding: utf-8
+# frozen_string_literal: false
require 'test/unit'
require File.join(File.dirname(__FILE__), 'setup_variant')
diff --git a/test/json/test_json_addition.rb b/test/json/test_json_addition.rb
index 6034a183bd8..f2059312de8 100644
--- a/test/json/test_json_addition.rb
+++ b/test/json/test_json_addition.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby
# -*- coding:utf-8 -*-
+# frozen_string_literal: false
require 'test/unit'
require File.join(File.dirname(__FILE__), 'setup_variant')
diff --git a/test/json/test_json_encoding.rb b/test/json/test_json_encoding.rb
index 13903cd266f..50fb4ea2793 100644
--- a/test/json/test_json_encoding.rb
+++ b/test/json/test_json_encoding.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby
# encoding: utf-8
+# frozen_string_literal: false
require 'test/unit'
require File.join(File.dirname(__FILE__), 'setup_variant')
diff --git a/test/json/test_json_fixtures.rb b/test/json/test_json_fixtures.rb
index c8614395734..e192706d6b6 100644
--- a/test/json/test_json_fixtures.rb
+++ b/test/json/test_json_fixtures.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby
# encoding: utf-8
+# frozen_string_literal: false
require 'test/unit'
require File.join(File.dirname(__FILE__), 'setup_variant')
diff --git a/test/json/test_json_generate.rb b/test/json/test_json_generate.rb
index 5da0d2f4f01..50895f62476 100644
--- a/test/json/test_json_generate.rb
+++ b/test/json/test_json_generate.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby
# encoding: utf-8
+# frozen_string_literal: false
require 'test/unit'
require File.join(File.dirname(__FILE__), 'setup_variant')
diff --git a/test/json/test_json_generic_object.rb b/test/json/test_json_generic_object.rb
index c43c7762be9..e04e1a1cb3e 100644
--- a/test/json/test_json_generic_object.rb
+++ b/test/json/test_json_generic_object.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby
# encoding: utf-8
+# frozen_string_literal: false
require 'test/unit'
require File.join(File.dirname(__FILE__), 'setup_variant')
diff --git a/test/json/test_json_string_matching.rb b/test/json/test_json_string_matching.rb
index c233df8c2cd..61582311036 100644
--- a/test/json/test_json_string_matching.rb
+++ b/test/json/test_json_string_matching.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby
# encoding: utf-8
+# frozen_string_literal: false
require 'test/unit'
require File.join(File.dirname(__FILE__), 'setup_variant')
diff --git a/test/json/test_json_unicode.rb b/test/json/test_json_unicode.rb
index 8352d5c6c6a..16234f04910 100644
--- a/test/json/test_json_unicode.rb
+++ b/test/json/test_json_unicode.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby
# encoding: utf-8
+# frozen_string_literal: false
require 'test/unit'
require File.join(File.dirname(__FILE__), 'setup_variant')
diff --git a/test/lib/envutil.rb b/test/lib/envutil.rb
index 2f2ec6deb64..a0b907c2459 100644
--- a/test/lib/envutil.rb
+++ b/test/lib/envutil.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
require "open3"
require "timeout"
require_relative "find_executable"
diff --git a/test/lib/find_executable.rb b/test/lib/find_executable.rb
index 4ba9a0533e7..0ddd307f8cc 100644
--- a/test/lib/find_executable.rb
+++ b/test/lib/find_executable.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rbconfig"
module EnvUtil
diff --git a/test/lib/iseq_loader_checker.rb b/test/lib/iseq_loader_checker.rb
index db9b7678c91..675b6580d6c 100644
--- a/test/lib/iseq_loader_checker.rb
+++ b/test/lib/iseq_loader_checker.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require '-test-/iseq_load/iseq_load'
diff --git a/test/lib/leakchecker.rb b/test/lib/leakchecker.rb
index 98a598f3657..a9bc5813c5b 100644
--- a/test/lib/leakchecker.rb
+++ b/test/lib/leakchecker.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
class LeakChecker
def initialize
@fd_info = find_fds
diff --git a/test/lib/memory_status.rb b/test/lib/memory_status.rb
index b275db05e6d..deaaeb2a1b2 100644
--- a/test/lib/memory_status.rb
+++ b/test/lib/memory_status.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module Memory
keys = []
vals = []
diff --git a/test/lib/minitest/autorun.rb b/test/lib/minitest/autorun.rb
index 88b1e0550de..40640b2580d 100644
--- a/test/lib/minitest/autorun.rb
+++ b/test/lib/minitest/autorun.rb
@@ -1,4 +1,5 @@
# encoding: utf-8
+# frozen_string_literal: false
begin
require 'rubygems'
diff --git a/test/lib/minitest/benchmark.rb b/test/lib/minitest/benchmark.rb
index 5195fc01bc7..21f0b29d509 100644
--- a/test/lib/minitest/benchmark.rb
+++ b/test/lib/minitest/benchmark.rb
@@ -1,4 +1,5 @@
# encoding: utf-8
+# frozen_string_literal: false
require 'minitest/unit'
diff --git a/test/lib/minitest/mock.rb b/test/lib/minitest/mock.rb
index 19acaff68e5..07e88113ea6 100644
--- a/test/lib/minitest/mock.rb
+++ b/test/lib/minitest/mock.rb
@@ -1,4 +1,5 @@
# encoding: utf-8
+# frozen_string_literal: false
class MockExpectationError < StandardError; end # :nodoc:
diff --git a/test/lib/minitest/unit.rb b/test/lib/minitest/unit.rb
index e67ca02cd8c..62f89e97e59 100644
--- a/test/lib/minitest/unit.rb
+++ b/test/lib/minitest/unit.rb
@@ -1,4 +1,5 @@
# encoding: utf-8
+# frozen_string_literal: false
require "optparse"
require "rbconfig"
diff --git a/test/lib/profile_test_all.rb b/test/lib/profile_test_all.rb
index 08de7bb1296..4496d3f780b 100644
--- a/test/lib/profile_test_all.rb
+++ b/test/lib/profile_test_all.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# purpose:
# Profile memory usage of each tests.
diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb
index d886f29c739..85e6d76f3d6 100644
--- a/test/lib/test/unit.rb
+++ b/test/lib/test/unit.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
gem 'minitest', '< 5.0.0' if defined? Gem
rescue Gem::LoadError
diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb
index 201e24592ab..c749384ebaf 100644
--- a/test/lib/test/unit/assertions.rb
+++ b/test/lib/test/unit/assertions.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'minitest/unit'
require 'pp'
diff --git a/test/lib/test/unit/parallel.rb b/test/lib/test/unit/parallel.rb
index 780deda5ae3..6a319c3c3f7 100644
--- a/test/lib/test/unit/parallel.rb
+++ b/test/lib/test/unit/parallel.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../.."
require 'test/unit'
diff --git a/test/lib/test/unit/testcase.rb b/test/lib/test/unit/testcase.rb
index d6ea4fd2b1d..10348b5c9b4 100644
--- a/test/lib/test/unit/testcase.rb
+++ b/test/lib/test/unit/testcase.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit/assertions'
module Test
diff --git a/test/lib/tracepointchecker.rb b/test/lib/tracepointchecker.rb
index 2d56e658ff4..73631d415ee 100644
--- a/test/lib/tracepointchecker.rb
+++ b/test/lib/tracepointchecker.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module TracePointChecker
STATE = {
count: 0,
diff --git a/test/lib/with_different_ofs.rb b/test/lib/with_different_ofs.rb
index 76dfa6896ca..164914f1d6c 100644
--- a/test/lib/with_different_ofs.rb
+++ b/test/lib/with_different_ofs.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module DifferentOFS
module WithDifferentOFS
def setup
diff --git a/test/lib/zombie_hunter.rb b/test/lib/zombie_hunter.rb
index 77be4dfea85..8a8fba649cf 100644
--- a/test/lib/zombie_hunter.rb
+++ b/test/lib/zombie_hunter.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module ZombieHunter
def after_teardown
super
diff --git a/test/logger/test_logdevice.rb b/test/logger/test_logdevice.rb
index f6dcf9a5a3c..8a7938984f6 100644
--- a/test/logger/test_logdevice.rb
+++ b/test/logger/test_logdevice.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'test/unit'
require 'logger'
require 'tempfile'
diff --git a/test/logger/test_logger.rb b/test/logger/test_logger.rb
index 24a53c1f646..836d3b30f43 100644
--- a/test/logger/test_logger.rb
+++ b/test/logger/test_logger.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'test/unit'
require 'logger'
require 'tempfile'
diff --git a/test/logger/test_severity.rb b/test/logger/test_severity.rb
index 045461caa2b..f17a3928291 100644
--- a/test/logger/test_severity.rb
+++ b/test/logger/test_severity.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'test/unit'
require 'logger'
diff --git a/test/matrix/test_matrix.rb b/test/matrix/test_matrix.rb
index 4e4dda0ee1d..425ec25a524 100644
--- a/test/matrix/test_matrix.rb
+++ b/test/matrix/test_matrix.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'matrix'
diff --git a/test/matrix/test_vector.rb b/test/matrix/test_vector.rb
index 77fc68dd2b8..72082be84c7 100644
--- a/test/matrix/test_vector.rb
+++ b/test/matrix/test_vector.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'matrix'
diff --git a/test/minitest/metametameta.rb b/test/minitest/metametameta.rb
index 9ffbdb05699..a12717c8b19 100644
--- a/test/minitest/metametameta.rb
+++ b/test/minitest/metametameta.rb
@@ -1,4 +1,5 @@
# encoding: utf-8
+# frozen_string_literal: false
require 'tempfile'
require 'stringio'
diff --git a/test/minitest/test_minitest_benchmark.rb b/test/minitest/test_minitest_benchmark.rb
index d04bb9a1256..a783e684c2d 100644
--- a/test/minitest/test_minitest_benchmark.rb
+++ b/test/minitest/test_minitest_benchmark.rb
@@ -1,4 +1,5 @@
# encoding: utf-8
+# frozen_string_literal: false
require 'minitest/autorun'
require 'minitest/benchmark'
diff --git a/test/minitest/test_minitest_mock.rb b/test/minitest/test_minitest_mock.rb
index 062cda56ff5..0db972674c3 100644
--- a/test/minitest/test_minitest_mock.rb
+++ b/test/minitest/test_minitest_mock.rb
@@ -1,4 +1,5 @@
# encoding: utf-8
+# frozen_string_literal: false
require 'minitest/autorun'
diff --git a/test/minitest/test_minitest_unit.rb b/test/minitest/test_minitest_unit.rb
index 61bfe25ee3f..315c36d416e 100644
--- a/test/minitest/test_minitest_unit.rb
+++ b/test/minitest/test_minitest_unit.rb
@@ -1,4 +1,5 @@
# encoding: utf-8
+# frozen_string_literal: false
require 'pathname'
require 'minitest/metametameta'
diff --git a/test/misc/test_ruby_mode.rb b/test/misc/test_ruby_mode.rb
index 5be01747f18..a91e1c254cc 100644
--- a/test/misc/test_ruby_mode.rb
+++ b/test/misc/test_ruby_mode.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tempfile'
diff --git a/test/mkmf/base.rb b/test/mkmf/base.rb
index d8e2a04fe76..86bdd29286e 100644
--- a/test/mkmf/base.rb
+++ b/test/mkmf/base.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
$extmk = true
require 'test/unit'
diff --git a/test/mkmf/test_config.rb b/test/mkmf/test_config.rb
index 7bf537e6933..07ed6414151 100644
--- a/test/mkmf/test_config.rb
+++ b/test/mkmf/test_config.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
$extmk = true
require 'test/unit'
diff --git a/test/mkmf/test_constant.rb b/test/mkmf/test_constant.rb
index fd1f940c445..f5a87a1caad 100644
--- a/test/mkmf/test_constant.rb
+++ b/test/mkmf/test_constant.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'base'
class TestMkmf
diff --git a/test/mkmf/test_convertible.rb b/test/mkmf/test_convertible.rb
index eec2d12c667..1baf8928424 100644
--- a/test/mkmf/test_convertible.rb
+++ b/test/mkmf/test_convertible.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'base'
class TestMkmf
diff --git a/test/mkmf/test_find_executable.rb b/test/mkmf/test_find_executable.rb
index fe45ef2d1ce..d2b460bd005 100644
--- a/test/mkmf/test_find_executable.rb
+++ b/test/mkmf/test_find_executable.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'base'
class TestMkmf
diff --git a/test/mkmf/test_flags.rb b/test/mkmf/test_flags.rb
index e49d474dc90..69a1084608e 100644
--- a/test/mkmf/test_flags.rb
+++ b/test/mkmf/test_flags.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'base'
class TestMkmf
diff --git a/test/mkmf/test_framework.rb b/test/mkmf/test_framework.rb
index 70ea8c3327c..ae05b0cffc3 100644
--- a/test/mkmf/test_framework.rb
+++ b/test/mkmf/test_framework.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'base'
class TestMkmf
diff --git a/test/mkmf/test_have_func.rb b/test/mkmf/test_have_func.rb
index 8049ffba182..5f76b72122a 100644
--- a/test/mkmf/test_have_func.rb
+++ b/test/mkmf/test_have_func.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'base'
require 'tempfile'
diff --git a/test/mkmf/test_have_library.rb b/test/mkmf/test_have_library.rb
index bf17b85f618..bb9ce6972d1 100644
--- a/test/mkmf/test_have_library.rb
+++ b/test/mkmf/test_have_library.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'base'
require 'tempfile'
diff --git a/test/mkmf/test_have_macro.rb b/test/mkmf/test_have_macro.rb
index 43c4029f702..ebc56480970 100644
--- a/test/mkmf/test_have_macro.rb
+++ b/test/mkmf/test_have_macro.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'base'
require 'tempfile'
diff --git a/test/mkmf/test_libs.rb b/test/mkmf/test_libs.rb
index 27674dfd26e..bb65e4de902 100644
--- a/test/mkmf/test_libs.rb
+++ b/test/mkmf/test_libs.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'base'
class TestMkmf
diff --git a/test/mkmf/test_signedness.rb b/test/mkmf/test_signedness.rb
index 8d580736984..589dcb56e8e 100644
--- a/test/mkmf/test_signedness.rb
+++ b/test/mkmf/test_signedness.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'base'
class TestMkmf
diff --git a/test/mkmf/test_sizeof.rb b/test/mkmf/test_sizeof.rb
index c0144226d5c..742c3d64541 100644
--- a/test/mkmf/test_sizeof.rb
+++ b/test/mkmf/test_sizeof.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'base'
class TestMkmf
diff --git a/test/monitor/test_monitor.rb b/test/monitor/test_monitor.rb
index 088bf28a37f..66c3e833caa 100644
--- a/test/monitor/test_monitor.rb
+++ b/test/monitor/test_monitor.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "monitor"
require "thread"
diff --git a/test/net/http/test_buffered_io.rb b/test/net/http/test_buffered_io.rb
index e24e7c1ed91..8c299ead032 100644
--- a/test/net/http/test_buffered_io.rb
+++ b/test/net/http/test_buffered_io.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'net/http'
require 'stringio'
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb
index 714e576cc11..d8983e91cd3 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'test/unit'
require 'net/http'
require 'stringio'
diff --git a/test/net/http/test_http_request.rb b/test/net/http/test_http_request.rb
index 1dcb847c3f8..35c935ac58c 100644
--- a/test/net/http/test_http_request.rb
+++ b/test/net/http/test_http_request.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'net/http'
require 'test/unit'
require 'stringio'
diff --git a/test/net/http/test_httpheader.rb b/test/net/http/test_httpheader.rb
index 224d8bb9a9d..2f3a0f11574 100644
--- a/test/net/http/test_httpheader.rb
+++ b/test/net/http/test_httpheader.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'net/http'
require 'test/unit'
diff --git a/test/net/http/test_httpresponse.rb b/test/net/http/test_httpresponse.rb
index a86020581c1..eb1a792e878 100644
--- a/test/net/http/test_httpresponse.rb
+++ b/test/net/http/test_httpresponse.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'net/http'
require 'test/unit'
require 'stringio'
diff --git a/test/net/http/test_httpresponses.rb b/test/net/http/test_httpresponses.rb
index bf7fbeef115..b389e163cf8 100644
--- a/test/net/http/test_httpresponses.rb
+++ b/test/net/http/test_httpresponses.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'net/http'
require 'test/unit'
diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb
index 8177d9451ff..dfdb221d7e8 100644
--- a/test/net/http/test_https.rb
+++ b/test/net/http/test_https.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
begin
require 'net/https'
diff --git a/test/net/http/test_https_proxy.rb b/test/net/http/test_https_proxy.rb
index 1c8503b7e15..f833f1a1e3f 100644
--- a/test/net/http/test_https_proxy.rb
+++ b/test/net/http/test_https_proxy.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'net/https'
rescue LoadError
diff --git a/test/net/http/utils.rb b/test/net/http/utils.rb
index dcd94693c20..8d0ecd6020f 100644
--- a/test/net/http/utils.rb
+++ b/test/net/http/utils.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'webrick'
begin
require "webrick/https"
diff --git a/test/net/pop/test_pop.rb b/test/net/pop/test_pop.rb
index 7aa65a44325..f06ccb44525 100644
--- a/test/net/pop/test_pop.rb
+++ b/test/net/pop/test_pop.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'net/pop'
require 'test/unit'
require 'digest/md5'
diff --git a/test/net/protocol/test_protocol.rb b/test/net/protocol/test_protocol.rb
index 4453422552e..0161fbc3a09 100644
--- a/test/net/protocol/test_protocol.rb
+++ b/test/net/protocol/test_protocol.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "net/protocol"
require "stringio"
diff --git a/test/net/smtp/test_response.rb b/test/net/smtp/test_response.rb
index cfd90b18ecc..79ac1d2d32b 100644
--- a/test/net/smtp/test_response.rb
+++ b/test/net/smtp/test_response.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'net/smtp'
require 'test/unit'
diff --git a/test/net/smtp/test_smtp.rb b/test/net/smtp/test_smtp.rb
index d8bb0c192c5..0edb3419d56 100644
--- a/test/net/smtp/test_smtp.rb
+++ b/test/net/smtp/test_smtp.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'net/smtp'
require 'stringio'
require 'test/unit'
diff --git a/test/net/smtp/test_ssl_socket.rb b/test/net/smtp/test_ssl_socket.rb
index ff229b5ad02..20792190c89 100644
--- a/test/net/smtp/test_ssl_socket.rb
+++ b/test/net/smtp/test_ssl_socket.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'net/smtp'
require 'test/unit'
diff --git a/test/nkf/test_kconv.rb b/test/nkf/test_kconv.rb
index 09c0ce803a5..de09bcd4ae9 100644
--- a/test/nkf/test_kconv.rb
+++ b/test/nkf/test_kconv.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'kconv'
diff --git a/test/nkf/test_nkf.rb b/test/nkf/test_nkf.rb
index 7329e75f125..eb51bf8e7d5 100644
--- a/test/nkf/test_nkf.rb
+++ b/test/nkf/test_nkf.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'nkf'
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb
index de719944197..f3ea88f6e4c 100644
--- a/test/objspace/test_objspace.rb
+++ b/test/objspace/test_objspace.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "objspace"
diff --git a/test/openssl/test_asn1.rb b/test/openssl/test_asn1.rb
index 8955d727167..fd2118d808d 100644
--- a/test/openssl/test_asn1.rb
+++ b/test/openssl/test_asn1.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
class OpenSSL::TestASN1 < Test::Unit::TestCase
diff --git a/test/openssl/test_bn.rb b/test/openssl/test_bn.rb
index 667cb2964e9..848d1feb437 100644
--- a/test/openssl/test_bn.rb
+++ b/test/openssl/test_bn.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_buffering.rb b/test/openssl/test_buffering.rb
index 0ca645998e3..fe07b46a5e2 100644
--- a/test/openssl/test_buffering.rb
+++ b/test/openssl/test_buffering.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
require 'stringio'
diff --git a/test/openssl/test_cipher.rb b/test/openssl/test_cipher.rb
index 6f92c381cf8..89c176f4de4 100644
--- a/test/openssl/test_cipher.rb
+++ b/test/openssl/test_cipher.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_config.rb b/test/openssl/test_config.rb
index 62f9fabce20..8f5bdb21505 100644
--- a/test/openssl/test_config.rb
+++ b/test/openssl/test_config.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
class OpenSSL::TestConfig < Test::Unit::TestCase
diff --git a/test/openssl/test_digest.rb b/test/openssl/test_digest.rb
index 5390225f36c..e206ca0283e 100644
--- a/test/openssl/test_digest.rb
+++ b/test/openssl/test_digest.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_engine.rb b/test/openssl/test_engine.rb
index a7264d0eeb8..3521de63961 100644
--- a/test/openssl/test_engine.rb
+++ b/test/openssl/test_engine.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
class OpenSSL::TestEngine < Test::Unit::TestCase
diff --git a/test/openssl/test_fips.rb b/test/openssl/test_fips.rb
index 6e4ac6d3457..33769c9388f 100644
--- a/test/openssl/test_fips.rb
+++ b/test/openssl/test_fips.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_hmac.rb b/test/openssl/test_hmac.rb
index f709ebd69bc..135d26f02c7 100644
--- a/test/openssl/test_hmac.rb
+++ b/test/openssl/test_hmac.rb
@@ -1,4 +1,5 @@
# coding: UTF-8
+# frozen_string_literal: false
require_relative 'utils'
diff --git a/test/openssl/test_ns_spki.rb b/test/openssl/test_ns_spki.rb
index ab07bfbebb3..4f6e6f59e79 100644
--- a/test/openssl/test_ns_spki.rb
+++ b/test/openssl/test_ns_spki.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_ocsp.rb b/test/openssl/test_ocsp.rb
index af727d8ecdb..1a969fd767f 100644
--- a/test/openssl/test_ocsp.rb
+++ b/test/openssl/test_ocsp.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "utils"
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_pair.rb b/test/openssl/test_pair.rb
index 33ec5554925..06ed3836ca9 100644
--- a/test/openssl/test_pair.rb
+++ b/test/openssl/test_pair.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_partial_record_read.rb b/test/openssl/test_partial_record_read.rb
index 1899a300df1..71e644a0395 100644
--- a/test/openssl/test_partial_record_read.rb
+++ b/test/openssl/test_partial_record_read.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "utils"
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_pkcs12.rb b/test/openssl/test_pkcs12.rb
index c44cee00ed7..ba07d767898 100644
--- a/test/openssl/test_pkcs12.rb
+++ b/test/openssl/test_pkcs12.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "utils"
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_pkcs5.rb b/test/openssl/test_pkcs5.rb
index 5e85dde955b..f38fd716b76 100644
--- a/test/openssl/test_pkcs5.rb
+++ b/test/openssl/test_pkcs5.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
class OpenSSL::TestPKCS5 < Test::Unit::TestCase
diff --git a/test/openssl/test_pkcs7.rb b/test/openssl/test_pkcs7.rb
index 47bd4f31337..ce99db50b17 100644
--- a/test/openssl/test_pkcs7.rb
+++ b/test/openssl/test_pkcs7.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_pkey_dh.rb b/test/openssl/test_pkey_dh.rb
index 040d0309143..9ef4025bee3 100644
--- a/test/openssl/test_pkey_dh.rb
+++ b/test/openssl/test_pkey_dh.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_pkey_dsa.rb b/test/openssl/test_pkey_dsa.rb
index e4ea1b5bd71..eb3e4f1c65e 100644
--- a/test/openssl/test_pkey_dsa.rb
+++ b/test/openssl/test_pkey_dsa.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
require 'base64'
diff --git a/test/openssl/test_pkey_ec.rb b/test/openssl/test_pkey_ec.rb
index 1693ace01fb..fe128fd4556 100644
--- a/test/openssl/test_pkey_ec.rb
+++ b/test/openssl/test_pkey_ec.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
if defined?(OpenSSL::TestUtils) && defined?(OpenSSL::PKey::EC)
diff --git a/test/openssl/test_pkey_rsa.rb b/test/openssl/test_pkey_rsa.rb
index ea042c27857..165b1ec98eb 100644
--- a/test/openssl/test_pkey_rsa.rb
+++ b/test/openssl/test_pkey_rsa.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
require 'base64'
diff --git a/test/openssl/test_random.rb b/test/openssl/test_random.rb
index e4242acf182..8c69d5431c4 100644
--- a/test/openssl/test_random.rb
+++ b/test/openssl/test_random.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require "openssl"
rescue LoadError
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb
index 5682bf5081f..58fcc0802aa 100644
--- a/test/openssl/test_ssl.rb
+++ b/test/openssl/test_ssl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "utils"
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_ssl_session.rb b/test/openssl/test_ssl_session.rb
index 28d268e76b1..3294aa7f80d 100644
--- a/test/openssl/test_ssl_session.rb
+++ b/test/openssl/test_ssl_session.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "utils"
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_x509cert.rb b/test/openssl/test_x509cert.rb
index 783677a4324..72cb9e6095f 100644
--- a/test/openssl/test_x509cert.rb
+++ b/test/openssl/test_x509cert.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "utils"
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_x509crl.rb b/test/openssl/test_x509crl.rb
index 9dc1b1cd14b..7994ddeaf90 100644
--- a/test/openssl/test_x509crl.rb
+++ b/test/openssl/test_x509crl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "utils"
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_x509ext.rb b/test/openssl/test_x509ext.rb
index 29e9f1dc44c..e6d49bb679e 100644
--- a/test/openssl/test_x509ext.rb
+++ b/test/openssl/test_x509ext.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'utils'
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_x509name.rb b/test/openssl/test_x509name.rb
index a92af534929..56e79879cfc 100644
--- a/test/openssl/test_x509name.rb
+++ b/test/openssl/test_x509name.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require_relative 'utils'
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_x509req.rb b/test/openssl/test_x509req.rb
index 27040cb7bf3..f1bf18465f8 100644
--- a/test/openssl/test_x509req.rb
+++ b/test/openssl/test_x509req.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "utils"
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/test_x509store.rb b/test/openssl/test_x509store.rb
index f3e144fc51b..9964cc8fc47 100644
--- a/test/openssl/test_x509store.rb
+++ b/test/openssl/test_x509store.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "utils"
if defined?(OpenSSL::TestUtils)
diff --git a/test/openssl/utils.rb b/test/openssl/utils.rb
index bd936beed70..0802c1ba998 100644
--- a/test/openssl/utils.rb
+++ b/test/openssl/utils.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require "openssl"
diff --git a/test/optparse/test_acceptable.rb b/test/optparse/test_acceptable.rb
index ee8479cc1e9..0c7590bae3f 100644
--- a/test/optparse/test_acceptable.rb
+++ b/test/optparse/test_acceptable.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'test_optparse'
class TestOptionParser::Acceptable < TestOptionParser
diff --git a/test/optparse/test_autoconf.rb b/test/optparse/test_autoconf.rb
index cb9c9386096..4b3616f8166 100644
--- a/test/optparse/test_autoconf.rb
+++ b/test/optparse/test_autoconf.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'optparse/ac'
diff --git a/test/optparse/test_bash_completion.rb b/test/optparse/test_bash_completion.rb
index baeb6d9882c..714fd35cff6 100644
--- a/test/optparse/test_bash_completion.rb
+++ b/test/optparse/test_bash_completion.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'optparse'
diff --git a/test/optparse/test_getopts.rb b/test/optparse/test_getopts.rb
index ae22f68184f..3711e6f2698 100644
--- a/test/optparse/test_getopts.rb
+++ b/test/optparse/test_getopts.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'optparse'
diff --git a/test/optparse/test_noarg.rb b/test/optparse/test_noarg.rb
index 3e6ed42f91e..8f9be29ab86 100644
--- a/test/optparse/test_noarg.rb
+++ b/test/optparse/test_noarg.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'test_optparse'
module TestOptionParser::NoArg
diff --git a/test/optparse/test_optarg.rb b/test/optparse/test_optarg.rb
index 3114b80fc5b..b7436fb74ce 100644
--- a/test/optparse/test_optarg.rb
+++ b/test/optparse/test_optarg.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'test_optparse'
class TestOptionParser::OptArg < TestOptionParser
diff --git a/test/optparse/test_optparse.rb b/test/optparse/test_optparse.rb
index e85a2ef5869..f17f8ee8956 100644
--- a/test/optparse/test_optparse.rb
+++ b/test/optparse/test_optparse.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'optparse'
diff --git a/test/optparse/test_placearg.rb b/test/optparse/test_placearg.rb
index 0bbd1a007e0..90b2b97a632 100644
--- a/test/optparse/test_placearg.rb
+++ b/test/optparse/test_placearg.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'test_optparse'
class TestOptionParser::PlaceArg < TestOptionParser
diff --git a/test/optparse/test_reqarg.rb b/test/optparse/test_reqarg.rb
index 397da4a5935..1904f461549 100644
--- a/test/optparse/test_reqarg.rb
+++ b/test/optparse/test_reqarg.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'test_optparse'
module TestOptionParser::ReqArg
diff --git a/test/optparse/test_summary.rb b/test/optparse/test_summary.rb
index 54fd194bbd7..b743aa00c1d 100644
--- a/test/optparse/test_summary.rb
+++ b/test/optparse/test_summary.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative 'test_optparse'
class TestOptionParser::SummaryTest < TestOptionParser
diff --git a/test/optparse/test_zsh_completion.rb b/test/optparse/test_zsh_completion.rb
index 7e5ba713840..1bc6c7f0bb3 100644
--- a/test/optparse/test_zsh_completion.rb
+++ b/test/optparse/test_zsh_completion.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'optparse'
diff --git a/test/ostruct/test_ostruct.rb b/test/ostruct/test_ostruct.rb
index b098992bc9d..8c122b94a74 100644
--- a/test/ostruct/test_ostruct.rb
+++ b/test/ostruct/test_ostruct.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'ostruct'
diff --git a/test/psych/handlers/test_recorder.rb b/test/psych/handlers/test_recorder.rb
index 96b8eac1fc6..17c7c6d0a02 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 3bbb4593201..498cdf8b090 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 b0c33e6a2aa..519c114b293 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 19cf94bd513..2f4e1f3bd0f 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 9e2c24013d3..ed009605ca4 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 960ffd71d8e..f1e71fb16c8 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 b656f4f90e8..b2803a65502 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 c7f964cc6d2..4e1fd4a1d69 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 e3213e2faac..e578d55f2d0 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 72150ad7db4..433fbf3d265 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 fd2d3299e30..a806f6b9726 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 bd77d60084f..97de2e15ec3 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 b19501932b4..54b9b356e82 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 544337d4c0a..13ca5dbc741 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 30dfb24f3b3..85fa78f5df4 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 e2a312901a6..b449ce49e37 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 a23fc1ac8f3..8bb850b1388 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 7df74ee846b..544947a521b 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 1620a6a4e3d..76245ca7b53 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 3dbf56279ad..3d4fa88eaa4 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 17255504433..d8ccb7056fd 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 5378b4aaad0..9d8b74f7caa 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 5e3ce8294fe..ed1ccd9bf89 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 273b466b0cd..1300bfc1db5 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 36edc26c49f..80791aa9187 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 0abe0dd398d..26aba0543b9 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 05a93438bc1..7de9e07fdcf 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 dd299c0ebf4..b69c54c1999 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 e6b76975a6a..4353ec33fa7 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 e8e423cb053..7ad18c557bc 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 f597b7a0515..be209edf2f3 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 921fe2284f4..0eb999cb2f0 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 7e41178e34f..1b054289eab 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 a8ae55cabe8..51aef408584 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 8c7f2513ce4..b7968d31890 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 558a6728861..a98881cf4b6 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 37fc5b2b803..870583323dd 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 724aab4f0eb..8a29b6a9b94 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 7ad3ddd8a04..09f1ee30c99 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 e6281753a50..f8e9e2f9551 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 62c88b753eb..71ee04f8631 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 94f1330d37a..a9ce652ced3 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 837c8e8c117..8072c26b579 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 780c9536931..9317855bbb3 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 19e5365244d..8878ea22b24 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 40702bce796..b3890bcd724 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
diff --git a/test/rdoc/test_rdoc_alias.rb b/test/rdoc/test_rdoc_alias.rb
index ff499af9628..fa0ab0f3668 100644
--- a/test/rdoc/test_rdoc_alias.rb
+++ b/test/rdoc/test_rdoc_alias.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
class TestRDocAlias < XrefTestCase
diff --git a/test/rdoc/test_rdoc_any_method.rb b/test/rdoc/test_rdoc_any_method.rb
index 90305807f8b..fdbb62efa6f 100644
--- a/test/rdoc/test_rdoc_any_method.rb
+++ b/test/rdoc/test_rdoc_any_method.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
class TestRDocAnyMethod < XrefTestCase
diff --git a/test/rdoc/test_rdoc_attr.rb b/test/rdoc/test_rdoc_attr.rb
index a4922df06c8..e4062d18074 100644
--- a/test/rdoc/test_rdoc_attr.rb
+++ b/test/rdoc/test_rdoc_attr.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocAttr < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_class_module.rb b/test/rdoc/test_rdoc_class_module.rb
index 0e06587dc63..7cbbcbcc526 100644
--- a/test/rdoc/test_rdoc_class_module.rb
+++ b/test/rdoc/test_rdoc_class_module.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
class TestRDocClassModule < XrefTestCase
diff --git a/test/rdoc/test_rdoc_code_object.rb b/test/rdoc/test_rdoc_code_object.rb
index 2fb6ac23a52..74b88557e0c 100644
--- a/test/rdoc/test_rdoc_code_object.rb
+++ b/test/rdoc/test_rdoc_code_object.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
diff --git a/test/rdoc/test_rdoc_comment.rb b/test/rdoc/test_rdoc_comment.rb
index 2a1318b66cf..178c579ea72 100644
--- a/test/rdoc/test_rdoc_comment.rb
+++ b/test/rdoc/test_rdoc_comment.rb
@@ -1,4 +1,5 @@
# coding: us-ascii
+# frozen_string_literal: false
require 'rdoc/test_case'
diff --git a/test/rdoc/test_rdoc_constant.rb b/test/rdoc/test_rdoc_constant.rb
index 171963d8e4e..c43aa7dc2bd 100644
--- a/test/rdoc/test_rdoc_constant.rb
+++ b/test/rdoc/test_rdoc_constant.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
class TestRDocConstant < XrefTestCase
diff --git a/test/rdoc/test_rdoc_context.rb b/test/rdoc/test_rdoc_context.rb
index c981cf3b115..c619c6cacbd 100644
--- a/test/rdoc/test_rdoc_context.rb
+++ b/test/rdoc/test_rdoc_context.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
class TestRDocContext < XrefTestCase
diff --git a/test/rdoc/test_rdoc_context_section.rb b/test/rdoc/test_rdoc_context_section.rb
index b8f8c7f756c..bd82d191b68 100644
--- a/test/rdoc/test_rdoc_context_section.rb
+++ b/test/rdoc/test_rdoc_context_section.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocContextSection < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_cross_reference.rb b/test/rdoc/test_rdoc_cross_reference.rb
index 99fc224d88a..c39d6ad3563 100644
--- a/test/rdoc/test_rdoc_cross_reference.rb
+++ b/test/rdoc/test_rdoc_cross_reference.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
class TestRDocCrossReference < XrefTestCase
diff --git a/test/rdoc/test_rdoc_encoding.rb b/test/rdoc/test_rdoc_encoding.rb
index 7ec39f8a9c2..313ede2bdec 100644
--- a/test/rdoc/test_rdoc_encoding.rb
+++ b/test/rdoc/test_rdoc_encoding.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'rdoc/test_case'
diff --git a/test/rdoc/test_rdoc_extend.rb b/test/rdoc/test_rdoc_extend.rb
index 149931549dd..bc50a657ac5 100644
--- a/test/rdoc/test_rdoc_extend.rb
+++ b/test/rdoc/test_rdoc_extend.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
class TestRDocExtend < XrefTestCase
diff --git a/test/rdoc/test_rdoc_generator_darkfish.rb b/test/rdoc/test_rdoc_generator_darkfish.rb
index fc77e4b1050..894acbd4f28 100644
--- a/test/rdoc/test_rdoc_generator_darkfish.rb
+++ b/test/rdoc/test_rdoc_generator_darkfish.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocGeneratorDarkfish < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_generator_json_index.rb b/test/rdoc/test_rdoc_generator_json_index.rb
index 9283fd9b768..13e7850a242 100644
--- a/test/rdoc/test_rdoc_generator_json_index.rb
+++ b/test/rdoc/test_rdoc_generator_json_index.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'rdoc/test_case'
diff --git a/test/rdoc/test_rdoc_generator_markup.rb b/test/rdoc/test_rdoc_generator_markup.rb
index 5f8a45bd0e4..d546c2f87fe 100644
--- a/test/rdoc/test_rdoc_generator_markup.rb
+++ b/test/rdoc/test_rdoc_generator_markup.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocGeneratorMarkup < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_generator_pot.rb b/test/rdoc/test_rdoc_generator_pot.rb
index d028ce71deb..3f1bee70c95 100644
--- a/test/rdoc/test_rdoc_generator_pot.rb
+++ b/test/rdoc/test_rdoc_generator_pot.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocGeneratorPOT < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_generator_pot_po.rb b/test/rdoc/test_rdoc_generator_pot_po.rb
index fae7f7ed6e3..ae60ff004e9 100644
--- a/test/rdoc/test_rdoc_generator_pot_po.rb
+++ b/test/rdoc/test_rdoc_generator_pot_po.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocGeneratorPOTPO < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_generator_pot_po_entry.rb b/test/rdoc/test_rdoc_generator_pot_po_entry.rb
index 8620d98bf84..36b85df864f 100644
--- a/test/rdoc/test_rdoc_generator_pot_po_entry.rb
+++ b/test/rdoc/test_rdoc_generator_pot_po_entry.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocGeneratorPOTPOEntry < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_generator_ri.rb b/test/rdoc/test_rdoc_generator_ri.rb
index f8ac97337dd..1e18e13b103 100644
--- a/test/rdoc/test_rdoc_generator_ri.rb
+++ b/test/rdoc/test_rdoc_generator_ri.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocGeneratorRI < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_i18n_locale.rb b/test/rdoc/test_rdoc_i18n_locale.rb
index 69de88a9f22..e9dce784728 100644
--- a/test/rdoc/test_rdoc_i18n_locale.rb
+++ b/test/rdoc/test_rdoc_i18n_locale.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocI18nLocale < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_i18n_text.rb b/test/rdoc/test_rdoc_i18n_text.rb
index c47f03c1af2..61df1939697 100644
--- a/test/rdoc/test_rdoc_i18n_text.rb
+++ b/test/rdoc/test_rdoc_i18n_text.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocI18nText < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_include.rb b/test/rdoc/test_rdoc_include.rb
index 464a6980182..6a34f5d4b89 100644
--- a/test/rdoc/test_rdoc_include.rb
+++ b/test/rdoc/test_rdoc_include.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
class TestRDocInclude < XrefTestCase
diff --git a/test/rdoc/test_rdoc_markdown.rb b/test/rdoc/test_rdoc_markdown.rb
index ea5dc73387b..6c7bf4ae326 100644
--- a/test/rdoc/test_rdoc_markdown.rb
+++ b/test/rdoc/test_rdoc_markdown.rb
@@ -1,4 +1,5 @@
# coding: UTF-8
+# frozen_string_literal: false
require 'rdoc/test_case'
require 'rdoc/markup/block_quote'
diff --git a/test/rdoc/test_rdoc_markdown_test.rb b/test/rdoc/test_rdoc_markdown_test.rb
index d464cba263c..0d880e0a7c6 100644
--- a/test/rdoc/test_rdoc_markdown_test.rb
+++ b/test/rdoc/test_rdoc_markdown_test.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems'
require 'minitest/autorun'
require 'pp'
diff --git a/test/rdoc/test_rdoc_markup.rb b/test/rdoc/test_rdoc_markup.rb
index 5c28a2c6e6a..ad13211f7bf 100644
--- a/test/rdoc/test_rdoc_markup.rb
+++ b/test/rdoc/test_rdoc_markup.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkup < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_markup_attribute_manager.rb b/test/rdoc/test_rdoc_markup_attribute_manager.rb
index 6a085fe7f53..c0f7666a017 100644
--- a/test/rdoc/test_rdoc_markup_attribute_manager.rb
+++ b/test/rdoc/test_rdoc_markup_attribute_manager.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupAttributeManager < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_markup_attributes.rb b/test/rdoc/test_rdoc_markup_attributes.rb
index 636e0cca682..077b6a54745 100644
--- a/test/rdoc/test_rdoc_markup_attributes.rb
+++ b/test/rdoc/test_rdoc_markup_attributes.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupAttributes < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_markup_document.rb b/test/rdoc/test_rdoc_markup_document.rb
index 718ae6d4c40..e5a61daea5d 100644
--- a/test/rdoc/test_rdoc_markup_document.rb
+++ b/test/rdoc/test_rdoc_markup_document.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupDocument < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_markup_formatter.rb b/test/rdoc/test_rdoc_markup_formatter.rb
index d01a42fca6c..02a6844a3ad 100644
--- a/test/rdoc/test_rdoc_markup_formatter.rb
+++ b/test/rdoc/test_rdoc_markup_formatter.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupFormatter < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_markup_hard_break.rb b/test/rdoc/test_rdoc_markup_hard_break.rb
index b9f7873160b..5d2d3596462 100644
--- a/test/rdoc/test_rdoc_markup_hard_break.rb
+++ b/test/rdoc/test_rdoc_markup_hard_break.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupHardBreak < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_markup_heading.rb b/test/rdoc/test_rdoc_markup_heading.rb
index 26d4b5bffc6..463df7ef43b 100644
--- a/test/rdoc/test_rdoc_markup_heading.rb
+++ b/test/rdoc/test_rdoc_markup_heading.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupHeading < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_markup_include.rb b/test/rdoc/test_rdoc_markup_include.rb
index 37a5b320e94..e72a0ac1bbc 100644
--- a/test/rdoc/test_rdoc_markup_include.rb
+++ b/test/rdoc/test_rdoc_markup_include.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupInclude < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_markup_indented_paragraph.rb b/test/rdoc/test_rdoc_markup_indented_paragraph.rb
index d8dd795e5b9..efcd840453d 100644
--- a/test/rdoc/test_rdoc_markup_indented_paragraph.rb
+++ b/test/rdoc/test_rdoc_markup_indented_paragraph.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupIndentedParagraph < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_markup_paragraph.rb b/test/rdoc/test_rdoc_markup_paragraph.rb
index 8de1c3cff55..6da6658c6f4 100644
--- a/test/rdoc/test_rdoc_markup_paragraph.rb
+++ b/test/rdoc/test_rdoc_markup_paragraph.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupParagraph < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_markup_parser.rb b/test/rdoc/test_rdoc_markup_parser.rb
index d27fb42f9af..e9986553c02 100644
--- a/test/rdoc/test_rdoc_markup_parser.rb
+++ b/test/rdoc/test_rdoc_markup_parser.rb
@@ -1,4 +1,5 @@
# coding: utf-8
+# frozen_string_literal: false
require 'rdoc/test_case'
diff --git a/test/rdoc/test_rdoc_markup_pre_process.rb b/test/rdoc/test_rdoc_markup_pre_process.rb
index 7cbe29c5a99..8bc474a8fc9 100644
--- a/test/rdoc/test_rdoc_markup_pre_process.rb
+++ b/test/rdoc/test_rdoc_markup_pre_process.rb
@@ -1,4 +1,5 @@
# coding: utf-8
+# frozen_string_literal: false
require 'rdoc/test_case'
diff --git a/test/rdoc/test_rdoc_markup_raw.rb b/test/rdoc/test_rdoc_markup_raw.rb
index 43bfe0c3b11..1453333b9ec 100644
--- a/test/rdoc/test_rdoc_markup_raw.rb
+++ b/test/rdoc/test_rdoc_markup_raw.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupRaw < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_markup_to_ansi.rb b/test/rdoc/test_rdoc_markup_to_ansi.rb
index 5afaf943500..8bd49271c1c 100644
--- a/test/rdoc/test_rdoc_markup_to_ansi.rb
+++ b/test/rdoc/test_rdoc_markup_to_ansi.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupToAnsi < RDoc::Markup::TextFormatterTestCase
diff --git a/test/rdoc/test_rdoc_markup_to_bs.rb b/test/rdoc/test_rdoc_markup_to_bs.rb
index f2e6352b69e..33d274a97f2 100644
--- a/test/rdoc/test_rdoc_markup_to_bs.rb
+++ b/test/rdoc/test_rdoc_markup_to_bs.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupToBs < RDoc::Markup::TextFormatterTestCase
diff --git a/test/rdoc/test_rdoc_markup_to_html.rb b/test/rdoc/test_rdoc_markup_to_html.rb
index dbbd2871886..1c7c879980b 100644
--- a/test/rdoc/test_rdoc_markup_to_html.rb
+++ b/test/rdoc/test_rdoc_markup_to_html.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupToHtml < RDoc::Markup::FormatterTestCase
diff --git a/test/rdoc/test_rdoc_markup_to_html_crossref.rb b/test/rdoc/test_rdoc_markup_to_html_crossref.rb
index 872daea1dcd..39a482740f3 100644
--- a/test/rdoc/test_rdoc_markup_to_html_crossref.rb
+++ b/test/rdoc/test_rdoc_markup_to_html_crossref.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
class TestRDocMarkupToHtmlCrossref < XrefTestCase
diff --git a/test/rdoc/test_rdoc_markup_to_html_snippet.rb b/test/rdoc/test_rdoc_markup_to_html_snippet.rb
index f861db18499..11bcd526be8 100644
--- a/test/rdoc/test_rdoc_markup_to_html_snippet.rb
+++ b/test/rdoc/test_rdoc_markup_to_html_snippet.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupToHtmlSnippet < RDoc::Markup::FormatterTestCase
diff --git a/test/rdoc/test_rdoc_markup_to_joined_paragraph.rb b/test/rdoc/test_rdoc_markup_to_joined_paragraph.rb
index 148edb17720..414b7d3732c 100644
--- a/test/rdoc/test_rdoc_markup_to_joined_paragraph.rb
+++ b/test/rdoc/test_rdoc_markup_to_joined_paragraph.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupToJoinedParagraph < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_markup_to_label.rb b/test/rdoc/test_rdoc_markup_to_label.rb
index d8cc3650693..35df69c2ac9 100644
--- a/test/rdoc/test_rdoc_markup_to_label.rb
+++ b/test/rdoc/test_rdoc_markup_to_label.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupToLabel < RDoc::Markup::FormatterTestCase
diff --git a/test/rdoc/test_rdoc_markup_to_markdown.rb b/test/rdoc/test_rdoc_markup_to_markdown.rb
index 442bb19e9c7..a72f30ee01d 100644
--- a/test/rdoc/test_rdoc_markup_to_markdown.rb
+++ b/test/rdoc/test_rdoc_markup_to_markdown.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupToMarkdown < RDoc::Markup::TextFormatterTestCase
diff --git a/test/rdoc/test_rdoc_markup_to_rdoc.rb b/test/rdoc/test_rdoc_markup_to_rdoc.rb
index 4b60d0133e8..0dce0a0d5ae 100644
--- a/test/rdoc/test_rdoc_markup_to_rdoc.rb
+++ b/test/rdoc/test_rdoc_markup_to_rdoc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupToRDoc < RDoc::Markup::TextFormatterTestCase
diff --git a/test/rdoc/test_rdoc_markup_to_table_of_contents.rb b/test/rdoc/test_rdoc_markup_to_table_of_contents.rb
index ba17b845a70..acfa8079487 100644
--- a/test/rdoc/test_rdoc_markup_to_table_of_contents.rb
+++ b/test/rdoc/test_rdoc_markup_to_table_of_contents.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupToTableOfContents < RDoc::Markup::FormatterTestCase
diff --git a/test/rdoc/test_rdoc_markup_to_tt_only.rb b/test/rdoc/test_rdoc_markup_to_tt_only.rb
index 2e950dd1b0a..a7918c90ab8 100644
--- a/test/rdoc/test_rdoc_markup_to_tt_only.rb
+++ b/test/rdoc/test_rdoc_markup_to_tt_only.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupToTtOnly < RDoc::Markup::FormatterTestCase
diff --git a/test/rdoc/test_rdoc_markup_verbatim.rb b/test/rdoc/test_rdoc_markup_verbatim.rb
index 781d52849ab..6fdf8fde28d 100644
--- a/test/rdoc/test_rdoc_markup_verbatim.rb
+++ b/test/rdoc/test_rdoc_markup_verbatim.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocMarkupVerbatim < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_method_attr.rb b/test/rdoc/test_rdoc_method_attr.rb
index e93e81cee4d..70f129ef320 100644
--- a/test/rdoc/test_rdoc_method_attr.rb
+++ b/test/rdoc/test_rdoc_method_attr.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
class TestRDocMethodAttr < XrefTestCase
diff --git a/test/rdoc/test_rdoc_normal_class.rb b/test/rdoc/test_rdoc_normal_class.rb
index ab31a8dd123..9153bdc839e 100644
--- a/test/rdoc/test_rdoc_normal_class.rb
+++ b/test/rdoc/test_rdoc_normal_class.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
class TestRDocNormalClass < XrefTestCase
diff --git a/test/rdoc/test_rdoc_normal_module.rb b/test/rdoc/test_rdoc_normal_module.rb
index 1944564596d..d92a72e7bf1 100644
--- a/test/rdoc/test_rdoc_normal_module.rb
+++ b/test/rdoc/test_rdoc_normal_module.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
class TestRDocNormalModule < XrefTestCase
diff --git a/test/rdoc/test_rdoc_options.rb b/test/rdoc/test_rdoc_options.rb
index 67053e3e334..5d79432f94a 100644
--- a/test/rdoc/test_rdoc_options.rb
+++ b/test/rdoc/test_rdoc_options.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocOptions < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_parser.rb b/test/rdoc/test_rdoc_parser.rb
index 34d4486cb1f..ee2865ce020 100644
--- a/test/rdoc/test_rdoc_parser.rb
+++ b/test/rdoc/test_rdoc_parser.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
require 'rdoc/test_case'
diff --git a/test/rdoc/test_rdoc_parser_c.rb b/test/rdoc/test_rdoc_parser_c.rb
index 71ffce5f9ab..fdc303e3e57 100644
--- a/test/rdoc/test_rdoc_parser_c.rb
+++ b/test/rdoc/test_rdoc_parser_c.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
=begin
diff --git a/test/rdoc/test_rdoc_parser_changelog.rb b/test/rdoc/test_rdoc_parser_changelog.rb
index 4d83983092b..0135d26d876 100644
--- a/test/rdoc/test_rdoc_parser_changelog.rb
+++ b/test/rdoc/test_rdoc_parser_changelog.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocParserChangeLog < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_parser_markdown.rb b/test/rdoc/test_rdoc_parser_markdown.rb
index b17e14432b0..a8a84029460 100644
--- a/test/rdoc/test_rdoc_parser_markdown.rb
+++ b/test/rdoc/test_rdoc_parser_markdown.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocParserMarkdown < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_parser_rd.rb b/test/rdoc/test_rdoc_parser_rd.rb
index 9be0d7d31cb..481d190ffe7 100644
--- a/test/rdoc/test_rdoc_parser_rd.rb
+++ b/test/rdoc/test_rdoc_parser_rd.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocParserRd < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_parser_ruby.rb b/test/rdoc/test_rdoc_parser_ruby.rb
index 8750433ff1c..2befa87542a 100644
--- a/test/rdoc/test_rdoc_parser_ruby.rb
+++ b/test/rdoc/test_rdoc_parser_ruby.rb
@@ -1,4 +1,5 @@
# coding: utf-8
+# frozen_string_literal: false
require 'rdoc/test_case'
diff --git a/test/rdoc/test_rdoc_parser_simple.rb b/test/rdoc/test_rdoc_parser_simple.rb
index d45a99358a5..0e2cf0d9a90 100644
--- a/test/rdoc/test_rdoc_parser_simple.rb
+++ b/test/rdoc/test_rdoc_parser_simple.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocParserSimple < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_rd.rb b/test/rdoc/test_rdoc_rd.rb
index d917a63661e..938c5569f9b 100644
--- a/test/rdoc/test_rdoc_rd.rb
+++ b/test/rdoc/test_rdoc_rd.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocRd < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_rd_block_parser.rb b/test/rdoc/test_rdoc_rd_block_parser.rb
index 956f3d28224..7afa9a03dd8 100644
--- a/test/rdoc/test_rdoc_rd_block_parser.rb
+++ b/test/rdoc/test_rdoc_rd_block_parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocRdBlockParser < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_rd_inline.rb b/test/rdoc/test_rdoc_rd_inline.rb
index d601ecca1a4..d4448e4397c 100644
--- a/test/rdoc/test_rdoc_rd_inline.rb
+++ b/test/rdoc/test_rdoc_rd_inline.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocRdInline < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_rd_inline_parser.rb b/test/rdoc/test_rdoc_rd_inline_parser.rb
index e4a765b4fb0..eb022b240f1 100644
--- a/test/rdoc/test_rdoc_rd_inline_parser.rb
+++ b/test/rdoc/test_rdoc_rd_inline_parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocRdInlineParser < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_rdoc.rb b/test/rdoc/test_rdoc_rdoc.rb
index 230c18fde27..793580de86c 100644
--- a/test/rdoc/test_rdoc_rdoc.rb
+++ b/test/rdoc/test_rdoc_rdoc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocRDoc < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_require.rb b/test/rdoc/test_rdoc_require.rb
index b7995aff7b0..cbedf5c8a4b 100644
--- a/test/rdoc/test_rdoc_require.rb
+++ b/test/rdoc/test_rdoc_require.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
class TestRDocRequire < XrefTestCase
diff --git a/test/rdoc/test_rdoc_ri_driver.rb b/test/rdoc/test_rdoc_ri_driver.rb
index d0987a01c32..cba7bedb2a5 100644
--- a/test/rdoc/test_rdoc_ri_driver.rb
+++ b/test/rdoc/test_rdoc_ri_driver.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocRIDriver < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_ri_paths.rb b/test/rdoc/test_rdoc_ri_paths.rb
index e377b0b1d00..06968b5510d 100644
--- a/test/rdoc/test_rdoc_ri_paths.rb
+++ b/test/rdoc/test_rdoc_ri_paths.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocRIPaths < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_ruby_lex.rb b/test/rdoc/test_rdoc_ruby_lex.rb
index 8871b4f4121..6356fa28948 100644
--- a/test/rdoc/test_rdoc_ruby_lex.rb
+++ b/test/rdoc/test_rdoc_ruby_lex.rb
@@ -1,4 +1,5 @@
# coding: UTF-8
+# frozen_string_literal: false
require 'rdoc/test_case'
diff --git a/test/rdoc/test_rdoc_ruby_token.rb b/test/rdoc/test_rdoc_ruby_token.rb
index ed8c8275ba1..4638606ef3d 100644
--- a/test/rdoc/test_rdoc_ruby_token.rb
+++ b/test/rdoc/test_rdoc_ruby_token.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocRubyToken < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_rubygems_hook.rb b/test/rdoc/test_rdoc_rubygems_hook.rb
index 960afc9ed4e..9ab481cbd41 100644
--- a/test/rdoc/test_rdoc_rubygems_hook.rb
+++ b/test/rdoc/test_rdoc_rubygems_hook.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems'
require 'rubygems/test_case'
require 'rdoc/rubygems_hook'
diff --git a/test/rdoc/test_rdoc_servlet.rb b/test/rdoc/test_rdoc_servlet.rb
index 9edd176cc4d..1ea0de7a267 100644
--- a/test/rdoc/test_rdoc_servlet.rb
+++ b/test/rdoc/test_rdoc_servlet.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocServlet < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_single_class.rb b/test/rdoc/test_rdoc_single_class.rb
index e368b3d6fdd..85a99d2229c 100644
--- a/test/rdoc/test_rdoc_single_class.rb
+++ b/test/rdoc/test_rdoc_single_class.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocSingleClass < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_stats.rb b/test/rdoc/test_rdoc_stats.rb
index cd37c29fce9..34e14177835 100644
--- a/test/rdoc/test_rdoc_stats.rb
+++ b/test/rdoc/test_rdoc_stats.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocStats < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_store.rb b/test/rdoc/test_rdoc_store.rb
index bd565e71496..c1717549c66 100644
--- a/test/rdoc/test_rdoc_store.rb
+++ b/test/rdoc/test_rdoc_store.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
class TestRDocStore < XrefTestCase
diff --git a/test/rdoc/test_rdoc_task.rb b/test/rdoc/test_rdoc_task.rb
index 610684e540b..bb5d2ae1344 100644
--- a/test/rdoc/test_rdoc_task.rb
+++ b/test/rdoc/test_rdoc_task.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
begin
require 'rake'
diff --git a/test/rdoc/test_rdoc_text.rb b/test/rdoc/test_rdoc_text.rb
index a69989d15d6..3945b6e718a 100644
--- a/test/rdoc/test_rdoc_text.rb
+++ b/test/rdoc/test_rdoc_text.rb
@@ -1,4 +1,5 @@
# coding: utf-8
+# frozen_string_literal: false
require 'rdoc/test_case'
diff --git a/test/rdoc/test_rdoc_token_stream.rb b/test/rdoc/test_rdoc_token_stream.rb
index 3c1a225c25f..5ed7b1d1a9b 100644
--- a/test/rdoc/test_rdoc_token_stream.rb
+++ b/test/rdoc/test_rdoc_token_stream.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocTokenStream < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_tom_doc.rb b/test/rdoc/test_rdoc_tom_doc.rb
index 63d3a5e79ea..7076edfa721 100644
--- a/test/rdoc/test_rdoc_tom_doc.rb
+++ b/test/rdoc/test_rdoc_tom_doc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/test_case'
class TestRDocTomDoc < RDoc::TestCase
diff --git a/test/rdoc/test_rdoc_top_level.rb b/test/rdoc/test_rdoc_top_level.rb
index f3ee6a4784f..b8145e3f9db 100644
--- a/test/rdoc/test_rdoc_top_level.rb
+++ b/test/rdoc/test_rdoc_top_level.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path '../xref_test_case', __FILE__
class TestRDocTopLevel < XrefTestCase
diff --git a/test/rdoc/xref_data.rb b/test/rdoc/xref_data.rb
index 4525a293abd..5d3f6a9a556 100644
--- a/test/rdoc/xref_data.rb
+++ b/test/rdoc/xref_data.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
XREF_DATA = <<-XREF_DATA
class C1
diff --git a/test/rdoc/xref_test_case.rb b/test/rdoc/xref_test_case.rb
index a56fa71268c..c0b3ae5abd9 100644
--- a/test/rdoc/xref_test_case.rb
+++ b/test/rdoc/xref_test_case.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
ENV['RDOC_TEST'] = 'yes'
require 'rdoc'
diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb
index 89d72b560ff..eae9518fb33 100644
--- a/test/readline/test_readline.rb
+++ b/test/readline/test_readline.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require "readline"
rescue LoadError
diff --git a/test/readline/test_readline_history.rb b/test/readline/test_readline_history.rb
index 4bcd7b3b252..a9a324fb9e7 100644
--- a/test/readline/test_readline_history.rb
+++ b/test/readline/test_readline_history.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require "readline"
=begin
diff --git a/test/resolv/test_addr.rb b/test/resolv/test_addr.rb
index e06c3c2a4ce..4a2df5bfcab 100644
--- a/test/resolv/test_addr.rb
+++ b/test/resolv/test_addr.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'resolv'
require 'socket'
diff --git a/test/resolv/test_dns.rb b/test/resolv/test_dns.rb
index 9f993ba96a8..338130e64f6 100644
--- a/test/resolv/test_dns.rb
+++ b/test/resolv/test_dns.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'resolv'
require 'socket'
diff --git a/test/resolv/test_resource.rb b/test/resolv/test_resource.rb
index 7ec17e33e79..8045bbc6ee9 100644
--- a/test/resolv/test_resource.rb
+++ b/test/resolv/test_resource.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'resolv'
diff --git a/test/rexml/listener.rb b/test/rexml/listener.rb
index 81c9e8822cb..6bede03c599 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 59fe5611554..80f70888fb5 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 0a4e737abf2..0d29f0d81f1 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 dba5eab033b..91d135f5f73 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 fa010f6975b..7ab0addca1b 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 4960fc16dcc..c48a13d3115 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 57fe65ca734..7c59629e538 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 aea1d8857ce..d6f566bdf84 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 17cca4efc3b..3a9f54eefd7 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 9471ad13ada..a2dc07254a9 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 d5e78a5cde5..0af2f5ca76c 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 fa84ebef3aa..8462b3c23fc 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 97aada9104a..f4eba0bbb3e 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 0b3ea119296..91de05b05fb 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 46cd6f7dbd3..c0faae4ae0f 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 f253a75daf0..a850e622092 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 058fb974b29..919db131f06 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 bef1bd6c01a..6dc6637074e 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 bf501ff0c23..5ac823dd8f8 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 0b5ec92f6cd..84ec5c7ba79 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 1eec73f3e03..aa9e2998abd 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 b775eb79e9e..99bd9cac3f5 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 f8212dcd2ea..1aeac072dd5 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 309e827880b..322d368be8c 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 26db1108694..da685a80ec1 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 f5cd294568e..90e1d369458 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 0e84961b374..807d9faa960 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 54fdd5b22ec..d89a1e1c90e 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 db336a16e58..31b5b74bd67 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 bb634663d58..1c54c9d53d6 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 2d37ec9dfbd..00539f0d4c6 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 3164d91c919..d7ceedc70e8 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 52ee11ef78a..3f8036eee34 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 ffeece56925..ab6a57efaf2 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 8989fe2cbf9..b5b50450e0b 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 a96d40c5428..a4d97c41d00 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 95af4de3999..9304db4e0d8 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 273180772ae..5842c6bc50e 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 a57ba632c41..5079fdd75a8 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 aec2de1cfe9..e0e958e70fa 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 287e131c541..ce1aaa324bc 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 46aba3c2efa..03afe9667ca 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'
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb
index e0b92e690c0..07de61438a8 100644
--- a/test/rinda/test_rinda.rb
+++ b/test/rinda/test_rinda.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'drb/drb'
diff --git a/test/rinda/test_tuplebag.rb b/test/rinda/test_tuplebag.rb
index 3e30127f0f0..ab17ca047cf 100644
--- a/test/rinda/test_tuplebag.rb
+++ b/test/rinda/test_tuplebag.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'rinda/tuplespace'
diff --git a/test/ripper/dummyparser.rb b/test/ripper/dummyparser.rb
index 35c08b52bb0..3c196d9a23d 100644
--- a/test/ripper/dummyparser.rb
+++ b/test/ripper/dummyparser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# dummyparser.rb
#
diff --git a/test/ripper/test_files.rb b/test/ripper/test_files.rb
index 5541a09368e..7b5fa1dc6ce 100644
--- a/test/ripper/test_files.rb
+++ b/test/ripper/test_files.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
module TestRipper; end
diff --git a/test/ripper/test_filter.rb b/test/ripper/test_filter.rb
index 005a5d81e28..0f9d38f7266 100644
--- a/test/ripper/test_filter.rb
+++ b/test/ripper/test_filter.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'ripper'
require 'test/unit'
@@ -76,7 +77,7 @@ class TestRipper::Filter < Test::Unit::TestCase
def test_filter_token
data = {}
- filter = Filter.new(File.read(filename))
+ filter = Filter.new("begin; puts 1; end")
filter.parse(data)
assert_equal("begin", data[:token])
end
diff --git a/test/ripper/test_ripper.rb b/test/ripper/test_ripper.rb
index 1544e5682f1..e0b65a04d89 100644
--- a/test/ripper/test_ripper.rb
+++ b/test/ripper/test_ripper.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'ripper'
require 'test/unit'
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb
index 45c16738d0d..ab52392eb1b 100644
--- a/test/ripper/test_scanner_events.rb
+++ b/test/ripper/test_scanner_events.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# test_scanner_events.rb
#
diff --git a/test/ripper/test_sexp.rb b/test/ripper/test_sexp.rb
index 557ae9b4233..46fb7f292aa 100644
--- a/test/ripper/test_sexp.rb
+++ b/test/ripper/test_sexp.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'ripper'
require 'test/unit'
diff --git a/test/rss/rss-assertions.rb b/test/rss/rss-assertions.rb
index f2e9dc07c99..1bafb02f86c 100644
--- a/test/rss/rss-assertions.rb
+++ b/test/rss/rss-assertions.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'erb'
module RSS
diff --git a/test/rss/rss-testcase.rb b/test/rss/rss-testcase.rb
index 2e39433d4a8..30067d43b2d 100644
--- a/test/rss/rss-testcase.rb
+++ b/test/rss/rss-testcase.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "erb"
require "test/unit"
diff --git a/test/rss/test_1.0.rb b/test/rss/test_1.0.rb
index 758eecf51da..33ae29141bd 100644
--- a/test/rss/test_1.0.rb
+++ b/test/rss/test_1.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/document"
require_relative "rss-testcase"
diff --git a/test/rss/test_2.0.rb b/test/rss/test_2.0.rb
index 37285cefa3f..650f8350105 100644
--- a/test/rss/test_2.0.rb
+++ b/test/rss/test_2.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/document"
require_relative "rss-testcase"
diff --git a/test/rss/test_accessor.rb b/test/rss/test_accessor.rb
index ea15316a5dd..7d4424dbbdc 100644
--- a/test/rss/test_accessor.rb
+++ b/test/rss/test_accessor.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/1.0"
diff --git a/test/rss/test_atom.rb b/test/rss/test_atom.rb
index 557cb803249..774064eff76 100644
--- a/test/rss/test_atom.rb
+++ b/test/rss/test_atom.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/document"
require_relative "rss-testcase"
diff --git a/test/rss/test_content.rb b/test/rss/test_content.rb
index 13f22a21526..fc8269df129 100644
--- a/test/rss/test_content.rb
+++ b/test/rss/test_content.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "cgi"
require "rexml/document"
diff --git a/test/rss/test_dublincore.rb b/test/rss/test_dublincore.rb
index eb03d849571..37ef1771993 100644
--- a/test/rss/test_dublincore.rb
+++ b/test/rss/test_dublincore.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "cgi"
require "rexml/document"
diff --git a/test/rss/test_image.rb b/test/rss/test_image.rb
index d8f0b26103d..0f1cd8c9e28 100644
--- a/test/rss/test_image.rb
+++ b/test/rss/test_image.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "cgi"
require "rexml/document"
diff --git a/test/rss/test_inherit.rb b/test/rss/test_inherit.rb
index 8b640dc3193..020f066c5f8 100644
--- a/test/rss/test_inherit.rb
+++ b/test/rss/test_inherit.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/1.0"
diff --git a/test/rss/test_itunes.rb b/test/rss/test_itunes.rb
index ec06337f7de..7be001062ba 100644
--- a/test/rss/test_itunes.rb
+++ b/test/rss/test_itunes.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "cgi"
require "rexml/document"
diff --git a/test/rss/test_maker_0.9.rb b/test/rss/test_maker_0.9.rb
index f6e39c60b75..64d04bcd10e 100644
--- a/test/rss/test_maker_0.9.rb
+++ b/test/rss/test_maker_0.9.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_maker_1.0.rb b/test/rss/test_maker_1.0.rb
index b31abb99085..c8f9977e435 100644
--- a/test/rss/test_maker_1.0.rb
+++ b/test/rss/test_maker_1.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_maker_2.0.rb b/test/rss/test_maker_2.0.rb
index 48c0f91f485..8528611e531 100644
--- a/test/rss/test_maker_2.0.rb
+++ b/test/rss/test_maker_2.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_maker_atom_entry.rb b/test/rss/test_maker_atom_entry.rb
index 9618723e628..8e41c7c50eb 100644
--- a/test/rss/test_maker_atom_entry.rb
+++ b/test/rss/test_maker_atom_entry.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_maker_atom_feed.rb b/test/rss/test_maker_atom_feed.rb
index d86600113d5..d4eacd36ad1 100644
--- a/test/rss/test_maker_atom_feed.rb
+++ b/test/rss/test_maker_atom_feed.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_maker_content.rb b/test/rss/test_maker_content.rb
index ba884f16a31..e3b84c53a41 100644
--- a/test/rss/test_maker_content.rb
+++ b/test/rss/test_maker_content.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_maker_dc.rb b/test/rss/test_maker_dc.rb
index 977350ca75d..f5c8bad2b30 100644
--- a/test/rss/test_maker_dc.rb
+++ b/test/rss/test_maker_dc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_maker_image.rb b/test/rss/test_maker_image.rb
index d01654c91bd..cc663c6a5cd 100644
--- a/test/rss/test_maker_image.rb
+++ b/test/rss/test_maker_image.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_maker_itunes.rb b/test/rss/test_maker_itunes.rb
index 0d47171fdd8..03092b1c414 100644
--- a/test/rss/test_maker_itunes.rb
+++ b/test/rss/test_maker_itunes.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_maker_slash.rb b/test/rss/test_maker_slash.rb
index ea95a99b688..5e5761ab0f6 100644
--- a/test/rss/test_maker_slash.rb
+++ b/test/rss/test_maker_slash.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_maker_sy.rb b/test/rss/test_maker_sy.rb
index 7117e3af0c4..6f4d6f83907 100644
--- a/test/rss/test_maker_sy.rb
+++ b/test/rss/test_maker_sy.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_maker_taxo.rb b/test/rss/test_maker_taxo.rb
index 4c4c2e336a1..9a19a52dc46 100644
--- a/test/rss/test_maker_taxo.rb
+++ b/test/rss/test_maker_taxo.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_maker_trackback.rb b/test/rss/test_maker_trackback.rb
index 411bf319ca0..b49e5c3f57c 100644
--- a/test/rss/test_maker_trackback.rb
+++ b/test/rss/test_maker_trackback.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_maker_xml-stylesheet.rb b/test/rss/test_maker_xml-stylesheet.rb
index 4f7c62aaeb7..4563de9902a 100644
--- a/test/rss/test_maker_xml-stylesheet.rb
+++ b/test/rss/test_maker_xml-stylesheet.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_parser.rb b/test/rss/test_parser.rb
index 8d8d1e19707..7d64657d579 100644
--- a/test/rss/test_parser.rb
+++ b/test/rss/test_parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "tempfile"
require_relative "rss-testcase"
diff --git a/test/rss/test_parser_1.0.rb b/test/rss/test_parser_1.0.rb
index 2efecdaf356..f7be5153af4 100644
--- a/test/rss/test_parser_1.0.rb
+++ b/test/rss/test_parser_1.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/1.0"
diff --git a/test/rss/test_parser_2.0.rb b/test/rss/test_parser_2.0.rb
index 68c7d1cca0d..ac7a67b8b16 100644
--- a/test/rss/test_parser_2.0.rb
+++ b/test/rss/test_parser_2.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/2.0"
diff --git a/test/rss/test_parser_atom_entry.rb b/test/rss/test_parser_atom_entry.rb
index 352fbbe7f9e..4f54ba3cadb 100644
--- a/test/rss/test_parser_atom_entry.rb
+++ b/test/rss/test_parser_atom_entry.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/atom"
diff --git a/test/rss/test_parser_atom_feed.rb b/test/rss/test_parser_atom_feed.rb
index a5731b2f673..626062d23ae 100644
--- a/test/rss/test_parser_atom_feed.rb
+++ b/test/rss/test_parser_atom_feed.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/atom"
diff --git a/test/rss/test_setup_maker_0.9.rb b/test/rss/test_setup_maker_0.9.rb
index 2714b9ceced..4eae62417a9 100644
--- a/test/rss/test_setup_maker_0.9.rb
+++ b/test/rss/test_setup_maker_0.9.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_setup_maker_1.0.rb b/test/rss/test_setup_maker_1.0.rb
index 0408ca911ef..a9d60ddb979 100644
--- a/test/rss/test_setup_maker_1.0.rb
+++ b/test/rss/test_setup_maker_1.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_setup_maker_2.0.rb b/test/rss/test_setup_maker_2.0.rb
index fcf1f578369..dffffe6da9e 100644
--- a/test/rss/test_setup_maker_2.0.rb
+++ b/test/rss/test_setup_maker_2.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_setup_maker_atom_entry.rb b/test/rss/test_setup_maker_atom_entry.rb
index ec9df5e70a4..f8649ea1856 100644
--- a/test/rss/test_setup_maker_atom_entry.rb
+++ b/test/rss/test_setup_maker_atom_entry.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_setup_maker_atom_feed.rb b/test/rss/test_setup_maker_atom_feed.rb
index ad2c6939d27..2196f1a46a4 100644
--- a/test/rss/test_setup_maker_atom_feed.rb
+++ b/test/rss/test_setup_maker_atom_feed.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_setup_maker_itunes.rb b/test/rss/test_setup_maker_itunes.rb
index 246fecf4c0f..35ecfb4829a 100644
--- a/test/rss/test_setup_maker_itunes.rb
+++ b/test/rss/test_setup_maker_itunes.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_setup_maker_slash.rb b/test/rss/test_setup_maker_slash.rb
index cd12db9f918..d6973bed4e6 100644
--- a/test/rss/test_setup_maker_slash.rb
+++ b/test/rss/test_setup_maker_slash.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
require "rss/maker"
diff --git a/test/rss/test_slash.rb b/test/rss/test_slash.rb
index 757e7879f27..6746e4488ff 100644
--- a/test/rss/test_slash.rb
+++ b/test/rss/test_slash.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "cgi"
require "rexml/document"
diff --git a/test/rss/test_syndication.rb b/test/rss/test_syndication.rb
index 17875f19544..ec3895eafc7 100644
--- a/test/rss/test_syndication.rb
+++ b/test/rss/test_syndication.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "cgi"
require "rexml/document"
diff --git a/test/rss/test_taxonomy.rb b/test/rss/test_taxonomy.rb
index 34937e4367b..89f49a94c34 100644
--- a/test/rss/test_taxonomy.rb
+++ b/test/rss/test_taxonomy.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "cgi"
require_relative "rss-testcase"
diff --git a/test/rss/test_to_s.rb b/test/rss/test_to_s.rb
index d97cf9d4b03..b8ef0d8da44 100644
--- a/test/rss/test_to_s.rb
+++ b/test/rss/test_to_s.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/document"
require_relative "rss-testcase"
diff --git a/test/rss/test_trackback.rb b/test/rss/test_trackback.rb
index 8560c254f0d..2910b4b344a 100644
--- a/test/rss/test_trackback.rb
+++ b/test/rss/test_trackback.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "cgi"
require "rexml/document"
diff --git a/test/rss/test_version.rb b/test/rss/test_version.rb
index d2175ab76a3..731e7e5e204 100644
--- a/test/rss/test_version.rb
+++ b/test/rss/test_version.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require_relative "rss-testcase"
module RSS
diff --git a/test/rss/test_xml-stylesheet.rb b/test/rss/test_xml-stylesheet.rb
index c67922f4ec5..71be1d8feaa 100644
--- a/test/rss/test_xml-stylesheet.rb
+++ b/test/rss/test_xml-stylesheet.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/document"
require_relative "rss-testcase"
diff --git a/test/ruby/allpairs.rb b/test/ruby/allpairs.rb
index 27b6f5988f6..e5893e252a5 100644
--- a/test/ruby/allpairs.rb
+++ b/test/ruby/allpairs.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module AllPairs
module_function
diff --git a/test/ruby/beginmainend.rb b/test/ruby/beginmainend.rb
index ddd4d254c6f..b6de5d65fd6 100644
--- a/test/ruby/beginmainend.rb
+++ b/test/ruby/beginmainend.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
BEGIN {
puts "b1"
# local_begin1 = "local_begin1"
diff --git a/test/ruby/enc/test_big5.rb b/test/ruby/enc/test_big5.rb
index e8fe0270a84..5dcf93e8e3a 100644
--- a/test/ruby/enc/test_big5.rb
+++ b/test/ruby/enc/test_big5.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
class TestBig5 < Test::Unit::TestCase
diff --git a/test/ruby/enc/test_cp949.rb b/test/ruby/enc/test_cp949.rb
index e675c7b80cf..0684162d5bf 100644
--- a/test/ruby/enc/test_cp949.rb
+++ b/test/ruby/enc/test_cp949.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
class TestCP949 < Test::Unit::TestCase
diff --git a/test/ruby/enc/test_emoji.rb b/test/ruby/enc/test_emoji.rb
index 1f80c5a79ef..330ff70cb95 100644
--- a/test/ruby/enc/test_emoji.rb
+++ b/test/ruby/enc/test_emoji.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
module Emoji
diff --git a/test/ruby/enc/test_euc_jp.rb b/test/ruby/enc/test_euc_jp.rb
index 510ee4611e3..4aec69e4dbc 100644
--- a/test/ruby/enc/test_euc_jp.rb
+++ b/test/ruby/enc/test_euc_jp.rb
@@ -1,4 +1,5 @@
# vim: set fileencoding=euc-jp
+# frozen_string_literal: false
require "test/unit"
diff --git a/test/ruby/enc/test_euc_kr.rb b/test/ruby/enc/test_euc_kr.rb
index 5413fa6062e..c9de2cc4e13 100644
--- a/test/ruby/enc/test_euc_kr.rb
+++ b/test/ruby/enc/test_euc_kr.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
class TestEucKr < Test::Unit::TestCase
diff --git a/test/ruby/enc/test_euc_tw.rb b/test/ruby/enc/test_euc_tw.rb
index f36d86b088a..649b1b81c6a 100644
--- a/test/ruby/enc/test_euc_tw.rb
+++ b/test/ruby/enc/test_euc_tw.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
class TestEucTw < Test::Unit::TestCase
diff --git a/test/ruby/enc/test_gb18030.rb b/test/ruby/enc/test_gb18030.rb
index f379504d485..76ac7859517 100644
--- a/test/ruby/enc/test_gb18030.rb
+++ b/test/ruby/enc/test_gb18030.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
class TestGB18030 < Test::Unit::TestCase
diff --git a/test/ruby/enc/test_gbk.rb b/test/ruby/enc/test_gbk.rb
index d6dc5d6d1b5..2e541b58217 100644
--- a/test/ruby/enc/test_gbk.rb
+++ b/test/ruby/enc/test_gbk.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
class TestGBK < Test::Unit::TestCase
diff --git a/test/ruby/enc/test_iso_8859.rb b/test/ruby/enc/test_iso_8859.rb
index 64cc7cd76da..f6b3b3f28b4 100644
--- a/test/ruby/enc/test_iso_8859.rb
+++ b/test/ruby/enc/test_iso_8859.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestISO8859 < Test::Unit::TestCase
diff --git a/test/ruby/enc/test_koi8.rb b/test/ruby/enc/test_koi8.rb
index ce2d8925eab..4a4d233e8d6 100644
--- a/test/ruby/enc/test_koi8.rb
+++ b/test/ruby/enc/test_koi8.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
class TestKOI8 < Test::Unit::TestCase
diff --git a/test/ruby/enc/test_shift_jis.rb b/test/ruby/enc/test_shift_jis.rb
index 1bd47fa8599..059992d1670 100644
--- a/test/ruby/enc/test_shift_jis.rb
+++ b/test/ruby/enc/test_shift_jis.rb
@@ -1,4 +1,5 @@
# vim: set fileencoding=shift_jis
+# frozen_string_literal: false
require "test/unit"
diff --git a/test/ruby/enc/test_utf16.rb b/test/ruby/enc/test_utf16.rb
index 63929c6f4b0..99b48c29825 100644
--- a/test/ruby/enc/test_utf16.rb
+++ b/test/ruby/enc/test_utf16.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestUTF16 < Test::Unit::TestCase
diff --git a/test/ruby/enc/test_utf32.rb b/test/ruby/enc/test_utf32.rb
index 29a22405987..23e8aeb315f 100644
--- a/test/ruby/enc/test_utf32.rb
+++ b/test/ruby/enc/test_utf32.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestUTF32 < Test::Unit::TestCase
diff --git a/test/ruby/enc/test_windows_1251.rb b/test/ruby/enc/test_windows_1251.rb
index 6fbf3159a19..002dbaa3cc2 100644
--- a/test/ruby/enc/test_windows_1251.rb
+++ b/test/ruby/enc/test_windows_1251.rb
@@ -1,4 +1,5 @@
# encoding:windows-1251
+# frozen_string_literal: false
require "test/unit"
diff --git a/test/ruby/enc/test_windows_1252.rb b/test/ruby/enc/test_windows_1252.rb
index 72ee3d201a1..f264cba759a 100644
--- a/test/ruby/enc/test_windows_1252.rb
+++ b/test/ruby/enc/test_windows_1252.rb
@@ -1,4 +1,5 @@
# encoding:windows-1252
+# frozen_string_literal: false
require "test/unit"
diff --git a/test/ruby/lbtest.rb b/test/ruby/lbtest.rb
index ae047fb187d..591656af77e 100644
--- a/test/ruby/lbtest.rb
+++ b/test/ruby/lbtest.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'thread'
class LocalBarrier
diff --git a/test/ruby/marshaltestlib.rb b/test/ruby/marshaltestlib.rb
index 665d365a9a2..358d3c5133e 100644
--- a/test/ruby/marshaltestlib.rb
+++ b/test/ruby/marshaltestlib.rb
@@ -1,4 +1,5 @@
# coding: utf-8
+# frozen_string_literal: false
module MarshalTestLib
# include this module to a Test::Unit::TestCase and define encode(o) and
# decode(s) methods. e.g.
diff --git a/test/ruby/sentence.rb b/test/ruby/sentence.rb
index 50f42d6885e..28fb5d1cf8e 100644
--- a/test/ruby/sentence.rb
+++ b/test/ruby/sentence.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# == sentence library
#
# = Features
diff --git a/test/ruby/test_alias.rb b/test/ruby/test_alias.rb
index 802c1963553..d5bbce3ddaa 100644
--- a/test/ruby/test_alias.rb
+++ b/test/ruby/test_alias.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestAlias < Test::Unit::TestCase
diff --git a/test/ruby/test_argf.rb b/test/ruby/test_argf.rb
index e40b0389670..d4be87e9542 100644
--- a/test/ruby/test_argf.rb
+++ b/test/ruby/test_argf.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'timeout'
require 'tmpdir'
diff --git a/test/ruby/test_arity.rb b/test/ruby/test_arity.rb
index 4a24bdc6601..b98248f6036 100644
--- a/test/ruby/test_arity.rb
+++ b/test/ruby/test_arity.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestArity < Test::Unit::TestCase
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index d2af339a118..b1fc473f861 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'test/unit'
class TestArray < Test::Unit::TestCase
diff --git a/test/ruby/test_assignment.rb b/test/ruby/test_assignment.rb
index 315f7baef6b..d0f2fadeaab 100644
--- a/test/ruby/test_assignment.rb
+++ b/test/ruby/test_assignment.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestAssignment < Test::Unit::TestCase
diff --git a/test/ruby/test_autoload.rb b/test/ruby/test_autoload.rb
index a672e0be5a2..b793fd2a7fb 100644
--- a/test/ruby/test_autoload.rb
+++ b/test/ruby/test_autoload.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tempfile'
require 'thread'
diff --git a/test/ruby/test_backtrace.rb b/test/ruby/test_backtrace.rb
index 3076f37017b..ff95a89e674 100644
--- a/test/ruby/test_backtrace.rb
+++ b/test/ruby/test_backtrace.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'thread'
require 'tempfile'
diff --git a/test/ruby/test_basicinstructions.rb b/test/ruby/test_basicinstructions.rb
index 4a1dc9ce128..b56b6d116db 100644
--- a/test/ruby/test_basicinstructions.rb
+++ b/test/ruby/test_basicinstructions.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
ConstTest = 3
diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb
index 9445fa6f957..0c88e9eb230 100644
--- a/test/ruby/test_beginendblock.rb
+++ b/test/ruby/test_beginendblock.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestBeginEndBlock < Test::Unit::TestCase
diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb
index d057e39dbd2..93afbe44af8 100644
--- a/test/ruby/test_bignum.rb
+++ b/test/ruby/test_bignum.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestBignum < Test::Unit::TestCase
diff --git a/test/ruby/test_call.rb b/test/ruby/test_call.rb
index 04966f40f78..7ef8d06936c 100644
--- a/test/ruby/test_call.rb
+++ b/test/ruby/test_call.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestCall < Test::Unit::TestCase
diff --git a/test/ruby/test_case.rb b/test/ruby/test_case.rb
index b9f8ab264dd..861fd8ea064 100644
--- a/test/ruby/test_case.rb
+++ b/test/ruby/test_case.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestCase < Test::Unit::TestCase
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb
index 1d9ee55d7ac..e60db37c15f 100644
--- a/test/ruby/test_class.rb
+++ b/test/ruby/test_class.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestClass < Test::Unit::TestCase
diff --git a/test/ruby/test_clone.rb b/test/ruby/test_clone.rb
index c5e2469d10a..93ef438461b 100644
--- a/test/ruby/test_clone.rb
+++ b/test/ruby/test_clone.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestClone < Test::Unit::TestCase
diff --git a/test/ruby/test_comparable.rb b/test/ruby/test_comparable.rb
index dab6be5b278..7624ef2bd34 100644
--- a/test/ruby/test_comparable.rb
+++ b/test/ruby/test_comparable.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestComparable < Test::Unit::TestCase
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb
index de3bb05d6cb..e51dec01cf4 100644
--- a/test/ruby/test_complex.rb
+++ b/test/ruby/test_complex.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class ComplexSub < Complex; end
diff --git a/test/ruby/test_complex2.rb b/test/ruby/test_complex2.rb
index 3ee7810dc60..594fc3f45a6 100644
--- a/test/ruby/test_complex2.rb
+++ b/test/ruby/test_complex2.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class Complex_Test2 < Test::Unit::TestCase
diff --git a/test/ruby/test_complexrational.rb b/test/ruby/test_complexrational.rb
index cef4074afa9..7c80e1a295d 100644
--- a/test/ruby/test_complexrational.rb
+++ b/test/ruby/test_complexrational.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class ComplexRational_Test < Test::Unit::TestCase
diff --git a/test/ruby/test_condition.rb b/test/ruby/test_condition.rb
index ba2e0688f3d..ab0ffc4b6a2 100644
--- a/test/ruby/test_condition.rb
+++ b/test/ruby/test_condition.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestCondition < Test::Unit::TestCase
diff --git a/test/ruby/test_const.rb b/test/ruby/test_const.rb
index 8d504649889..0b2c4497c62 100644
--- a/test/ruby/test_const.rb
+++ b/test/ruby/test_const.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
require 'test/unit'
class TestConst < Test::Unit::TestCase
diff --git a/test/ruby/test_continuation.rb b/test/ruby/test_continuation.rb
index 8d57b8bc25b..efc549b67a1 100644
--- a/test/ruby/test_continuation.rb
+++ b/test/ruby/test_continuation.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
EnvUtil.suppress_warning {require 'continuation'}
require 'fiber'
diff --git a/test/ruby/test_defined.rb b/test/ruby/test_defined.rb
index 95a46ed9847..de7ba9cc140 100644
--- a/test/ruby/test_defined.rb
+++ b/test/ruby/test_defined.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestDefined < Test::Unit::TestCase
diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb
index 510cbf3104f..0cc5a6aa9b2 100644
--- a/test/ruby/test_dir.rb
+++ b/test/ruby/test_dir.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tmpdir'
diff --git a/test/ruby/test_dir_m17n.rb b/test/ruby/test_dir_m17n.rb
index bb60b0af766..febfbc0511f 100644
--- a/test/ruby/test_dir_m17n.rb
+++ b/test/ruby/test_dir_m17n.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tmpdir'
diff --git a/test/ruby/test_econv.rb b/test/ruby/test_econv.rb
index 5690ec75f2f..8172bf99ef6 100644
--- a/test/ruby/test_econv.rb
+++ b/test/ruby/test_econv.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestEncodingConverter < Test::Unit::TestCase
diff --git a/test/ruby/test_encoding.rb b/test/ruby/test_encoding.rb
index abe4317ff6d..06559651c55 100644
--- a/test/ruby/test_encoding.rb
+++ b/test/ruby/test_encoding.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestEncoding < Test::Unit::TestCase
diff --git a/test/ruby/test_enum.rb b/test/ruby/test_enum.rb
index 4a6aa5e36e1..ab3564491a9 100644
--- a/test/ruby/test_enum.rb
+++ b/test/ruby/test_enum.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
EnvUtil.suppress_warning {require 'continuation'}
require 'stringio'
diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb
index e81d2e4e725..aa36187ba2b 100644
--- a/test/ruby/test_enumerator.rb
+++ b/test/ruby/test_enumerator.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestEnumerator < Test::Unit::TestCase
diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb
index f7c6e61de5a..c1617cce7e2 100644
--- a/test/ruby/test_env.rb
+++ b/test/ruby/test_env.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestEnv < Test::Unit::TestCase
diff --git a/test/ruby/test_eval.rb b/test/ruby/test_eval.rb
index 02dbb9b379d..6982429b510 100644
--- a/test/ruby/test_eval.rb
+++ b/test/ruby/test_eval.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestEval < Test::Unit::TestCase
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index 707a99f8059..1148277a1b5 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tempfile'
diff --git a/test/ruby/test_extlibs.rb b/test/ruby/test_extlibs.rb
index 995baa0d32a..4d14ed45a85 100644
--- a/test/ruby/test_extlibs.rb
+++ b/test/ruby/test_extlibs.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "envutil"
require "shellwords"
diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb
index 4684a65a03c..fed5d3d2c64 100644
--- a/test/ruby/test_fiber.rb
+++ b/test/ruby/test_fiber.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'fiber'
EnvUtil.suppress_warning {require 'continuation'}
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb
index 3599d168d1a..88b934d8ef0 100644
--- a/test/ruby/test_file.rb
+++ b/test/ruby/test_file.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tempfile'
require "thread"
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index e4b92152e53..8070d57bd0a 100644
--- a/test/ruby/test_file_exhaustive.rb
+++ b/test/ruby/test_file_exhaustive.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "fileutils"
require "tmpdir"
diff --git a/test/ruby/test_fixnum.rb b/test/ruby/test_fixnum.rb
index e10371d3e34..b5b642504f7 100644
--- a/test/ruby/test_fixnum.rb
+++ b/test/ruby/test_fixnum.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestFixnum < Test::Unit::TestCase
diff --git a/test/ruby/test_flip.rb b/test/ruby/test_flip.rb
index 84f7bf05621..594c8101b9f 100644
--- a/test/ruby/test_flip.rb
+++ b/test/ruby/test_flip.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestFlip < Test::Unit::TestCase
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb
index f1e01fc249b..3afd26d0b4d 100644
--- a/test/ruby/test_float.rb
+++ b/test/ruby/test_float.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestFloat < Test::Unit::TestCase
diff --git a/test/ruby/test_fnmatch.rb b/test/ruby/test_fnmatch.rb
index a0eab545e44..ca01a286989 100644
--- a/test/ruby/test_fnmatch.rb
+++ b/test/ruby/test_fnmatch.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestFnmatch < Test::Unit::TestCase
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index f7ee182e837..0e3ae4bc420 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestGc < Test::Unit::TestCase
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb
index 01990618fb9..6ee029722a8 100644
--- a/test/ruby/test_hash.rb
+++ b/test/ruby/test_hash.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
require 'test/unit'
EnvUtil.suppress_warning {require 'continuation'}
diff --git a/test/ruby/test_ifunless.rb b/test/ruby/test_ifunless.rb
index e144ff8efd3..d533e155bc1 100644
--- a/test/ruby/test_ifunless.rb
+++ b/test/ruby/test_ifunless.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestIfunless < Test::Unit::TestCase
diff --git a/test/ruby/test_integer.rb b/test/ruby/test_integer.rb
index 3dbf365a7c7..64b8e1e2c1f 100644
--- a/test/ruby/test_integer.rb
+++ b/test/ruby/test_integer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestInteger < Test::Unit::TestCase
diff --git a/test/ruby/test_integer_comb.rb b/test/ruby/test_integer_comb.rb
index 90185183347..c96b34a477c 100644
--- a/test/ruby/test_integer_comb.rb
+++ b/test/ruby/test_integer_comb.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestIntegerComb < Test::Unit::TestCase
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index bd92634785b..bb6503a2dbf 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'test/unit'
require 'tmpdir'
require "fcntl"
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb
index ed8ac99946b..233b93d0b3e 100644
--- a/test/ruby/test_io_m17n.rb
+++ b/test/ruby/test_io_m17n.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'test/unit'
require 'tmpdir'
require 'tempfile'
diff --git a/test/ruby/test_iterator.rb b/test/ruby/test_iterator.rb
index 34652db2bb5..fb81820ebf3 100644
--- a/test/ruby/test_iterator.rb
+++ b/test/ruby/test_iterator.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class Array
diff --git a/test/ruby/test_keyword.rb b/test/ruby/test_keyword.rb
index 9c76e15c38a..f6923248ff3 100644
--- a/test/ruby/test_keyword.rb
+++ b/test/ruby/test_keyword.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestKeywordArguments < Test::Unit::TestCase
diff --git a/test/ruby/test_lambda.rb b/test/ruby/test_lambda.rb
index b2b4c9c9073..f61e8a9f627 100644
--- a/test/ruby/test_lambda.rb
+++ b/test/ruby/test_lambda.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestLambdaParameters < Test::Unit::TestCase
diff --git a/test/ruby/test_lazy_enumerator.rb b/test/ruby/test_lazy_enumerator.rb
index a0c50687100..29c6b3e8555 100644
--- a/test/ruby/test_lazy_enumerator.rb
+++ b/test/ruby/test_lazy_enumerator.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestLazyEnumerator < Test::Unit::TestCase
diff --git a/test/ruby/test_literal.rb b/test/ruby/test_literal.rb
index e523f11cd7e..522ca53ea44 100644
--- a/test/ruby/test_literal.rb
+++ b/test/ruby/test_literal.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
require 'test/unit'
class TestRubyLiteral < Test::Unit::TestCase
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb
index a9cb86a5c84..74b847a8259 100644
--- a/test/ruby/test_m17n.rb
+++ b/test/ruby/test_m17n.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'test/unit'
class TestM17N < Test::Unit::TestCase
diff --git a/test/ruby/test_m17n_comb.rb b/test/ruby/test_m17n_comb.rb
index cf00e521572..054287e2b5f 100644
--- a/test/ruby/test_m17n_comb.rb
+++ b/test/ruby/test_m17n_comb.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'etc'
require_relative 'allpairs'
diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb
index 145244ec10a..482637fa127 100644
--- a/test/ruby/test_marshal.rb
+++ b/test/ruby/test_marshal.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tempfile'
require_relative 'marshaltestlib'
diff --git a/test/ruby/test_math.rb b/test/ruby/test_math.rb
index 674bb541e55..f2805a2d748 100644
--- a/test/ruby/test_math.rb
+++ b/test/ruby/test_math.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestMath < Test::Unit::TestCase
diff --git a/test/ruby/test_metaclass.rb b/test/ruby/test_metaclass.rb
index 6386a02dfac..8c1990a78cf 100644
--- a/test/ruby/test_metaclass.rb
+++ b/test/ruby/test_metaclass.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestMetaclass < Test::Unit::TestCase
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb
index 48178c4d7ad..cc2c9873c5e 100644
--- a/test/ruby/test_method.rb
+++ b/test/ruby/test_method.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
require 'test/unit'
class TestMethod < Test::Unit::TestCase
diff --git a/test/ruby/test_mixed_unicode_escapes.rb b/test/ruby/test_mixed_unicode_escapes.rb
index ac712db0f8c..09240d8ab27 100644
--- a/test/ruby/test_mixed_unicode_escapes.rb
+++ b/test/ruby/test_mixed_unicode_escapes.rb
@@ -1,4 +1,5 @@
# -*- coding: cp932 -*-
+# frozen_string_literal: false
# This test is in a different file than TestUnicodeEscapes
# So that we can have a different coding comment above
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index b86efd70056..53569831352 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'pp'
diff --git a/test/ruby/test_not.rb b/test/ruby/test_not.rb
index 486075bf837..721f868a5a1 100644
--- a/test/ruby/test_not.rb
+++ b/test/ruby/test_not.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestIfunless < Test::Unit::TestCase
diff --git a/test/ruby/test_notimp.rb b/test/ruby/test_notimp.rb
index 9721723b298..a9ab8f328fd 100644
--- a/test/ruby/test_notimp.rb
+++ b/test/ruby/test_notimp.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'timeout'
require 'tmpdir'
diff --git a/test/ruby/test_numeric.rb b/test/ruby/test_numeric.rb
index f539ccf731f..ad5e2831524 100644
--- a/test/ruby/test_numeric.rb
+++ b/test/ruby/test_numeric.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestNumeric < Test::Unit::TestCase
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb
index 29ce7ac76dd..0ab134170d3 100644
--- a/test/ruby/test_object.rb
+++ b/test/ruby/test_object.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
require 'test/unit'
class TestObject < Test::Unit::TestCase
diff --git a/test/ruby/test_objectspace.rb b/test/ruby/test_objectspace.rb
index cb17d034170..b701e0fc913 100644
--- a/test/ruby/test_objectspace.rb
+++ b/test/ruby/test_objectspace.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestObjectSpace < Test::Unit::TestCase
diff --git a/test/ruby/test_optimization.rb b/test/ruby/test_optimization.rb
index 3573d1267f2..2115fc849dc 100644
--- a/test/ruby/test_optimization.rb
+++ b/test/ruby/test_optimization.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'objspace'
diff --git a/test/ruby/test_pack.rb b/test/ruby/test_pack.rb
index d696dd70a13..2d7c0ae8e6c 100644
--- a/test/ruby/test_pack.rb
+++ b/test/ruby/test_pack.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'test/unit'
class TestPack < Test::Unit::TestCase
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index 673b0e7b74a..6560618b118 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'test/unit'
require 'stringio'
diff --git a/test/ruby/test_path.rb b/test/ruby/test_path.rb
index b604a763f19..6af4fb6ac01 100644
--- a/test/ruby/test_path.rb
+++ b/test/ruby/test_path.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestPath < Test::Unit::TestCase
diff --git a/test/ruby/test_pipe.rb b/test/ruby/test_pipe.rb
index bcea91bebb6..efca8f28c1f 100644
--- a/test/ruby/test_pipe.rb
+++ b/test/ruby/test_pipe.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require_relative 'ut_eof'
diff --git a/test/ruby/test_primitive.rb b/test/ruby/test_primitive.rb
index 9d451e2ae08..d1503a562b9 100644
--- a/test/ruby/test_primitive.rb
+++ b/test/ruby/test_primitive.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestRubyPrimitive < Test::Unit::TestCase
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb
index e13bf59598f..fa247f2fc07 100644
--- a/test/ruby/test_proc.rb
+++ b/test/ruby/test_proc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestProc < Test::Unit::TestCase
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 2e120ef9bb7..ca35d151a9e 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tempfile'
require 'timeout'
diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb
index 4da1559e403..d4258a7f1c6 100644
--- a/test/ruby/test_rand.rb
+++ b/test/ruby/test_rand.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestRand < Test::Unit::TestCase
diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb
index a91f80b0766..046f69e9de8 100644
--- a/test/ruby/test_range.rb
+++ b/test/ruby/test_range.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'delegate'
require 'timeout'
diff --git a/test/ruby/test_rational.rb b/test/ruby/test_rational.rb
index f922d895337..ea51ca29f06 100644
--- a/test/ruby/test_rational.rb
+++ b/test/ruby/test_rational.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class RationalSub < Rational; end
diff --git a/test/ruby/test_rational2.rb b/test/ruby/test_rational2.rb
index 3b6a985bc62..4e96bf621cf 100644
--- a/test/ruby/test_rational2.rb
+++ b/test/ruby/test_rational2.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class Rational_Test2 < Test::Unit::TestCase
diff --git a/test/ruby/test_readpartial.rb b/test/ruby/test_readpartial.rb
index bc84da7d128..bc22556cd4e 100644
--- a/test/ruby/test_readpartial.rb
+++ b/test/ruby/test_readpartial.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'timeout'
require 'fcntl'
diff --git a/test/ruby/test_refinement.rb b/test/ruby/test_refinement.rb
index 52b7ac70862..99987da9889 100644
--- a/test/ruby/test_refinement.rb
+++ b/test/ruby/test_refinement.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestRefinement < Test::Unit::TestCase
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
index 8e01c055973..ef75d4d4135 100644
--- a/test/ruby/test_regexp.rb
+++ b/test/ruby/test_regexp.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'test/unit'
class TestRegexp < Test::Unit::TestCase
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb
index 9123d5bc8f0..a7db8b93e0f 100644
--- a/test/ruby/test_require.rb
+++ b/test/ruby/test_require.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tempfile'
diff --git a/test/ruby/test_rubyvm.rb b/test/ruby/test_rubyvm.rb
index 580f3be2e19..c2d334d04c6 100644
--- a/test/ruby/test_rubyvm.rb
+++ b/test/ruby/test_rubyvm.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestRubyVM < Test::Unit::TestCase
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb
index e5048adba18..fc1391e60fc 100644
--- a/test/ruby/test_settracefunc.rb
+++ b/test/ruby/test_settracefunc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestSetTraceFunc < Test::Unit::TestCase
diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb
index 781045d30a9..13d52013b0b 100644
--- a/test/ruby/test_signal.rb
+++ b/test/ruby/test_signal.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'timeout'
require 'tempfile'
diff --git a/test/ruby/test_sleep.rb b/test/ruby/test_sleep.rb
index 29490a7a189..61002b8b187 100644
--- a/test/ruby/test_sleep.rb
+++ b/test/ruby/test_sleep.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'etc'
diff --git a/test/ruby/test_sprintf.rb b/test/ruby/test_sprintf.rb
index f400e2be6e8..1d3badddf9a 100644
--- a/test/ruby/test_sprintf.rb
+++ b/test/ruby/test_sprintf.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestSprintf < Test::Unit::TestCase
diff --git a/test/ruby/test_sprintf_comb.rb b/test/ruby/test_sprintf_comb.rb
index c58ddf4f154..41131130309 100644
--- a/test/ruby/test_sprintf_comb.rb
+++ b/test/ruby/test_sprintf_comb.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require_relative 'allpairs'
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb
index eed7c69a024..47bd0d56af6 100644
--- a/test/ruby/test_string.rb
+++ b/test/ruby/test_string.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestString < Test::Unit::TestCase
diff --git a/test/ruby/test_stringchar.rb b/test/ruby/test_stringchar.rb
index 7f7342c9abd..e13beef69c1 100644
--- a/test/ruby/test_stringchar.rb
+++ b/test/ruby/test_stringchar.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestStringchar < Test::Unit::TestCase
diff --git a/test/ruby/test_struct.rb b/test/ruby/test_struct.rb
index 19a66fb9b17..38632a1981e 100644
--- a/test/ruby/test_struct.rb
+++ b/test/ruby/test_struct.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
require 'test/unit'
require 'timeout'
diff --git a/test/ruby/test_super.rb b/test/ruby/test_super.rb
index 4f439a6e727..06e3e6e3b50 100644
--- a/test/ruby/test_super.rb
+++ b/test/ruby/test_super.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestSuper < Test::Unit::TestCase
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb
index a7ffe7b8b97..0e8417c5ed7 100644
--- a/test/ruby/test_symbol.rb
+++ b/test/ruby/test_symbol.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestSymbol < Test::Unit::TestCase
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb
index dfe58592475..77cb3ea54e3 100644
--- a/test/ruby/test_syntax.rb
+++ b/test/ruby/test_syntax.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestSyntax < Test::Unit::TestCase
diff --git a/test/ruby/test_system.rb b/test/ruby/test_system.rb
index b328cbcc1dc..60037ab0444 100644
--- a/test/ruby/test_system.rb
+++ b/test/ruby/test_system.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tmpdir'
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index e0c61c66f50..dc929ce4fd1 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
require 'test/unit'
require 'thread'
diff --git a/test/ruby/test_threadgroup.rb b/test/ruby/test_threadgroup.rb
index e158f5ada4a..80b0c153389 100644
--- a/test/ruby/test_threadgroup.rb
+++ b/test/ruby/test_threadgroup.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'thread'
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb
index 97c6288f4dc..232d3472c48 100644
--- a/test/ruby/test_time.rb
+++ b/test/ruby/test_time.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'delegate'
require 'timeout'
diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb
index a73bd86f0b2..f5d46905a0f 100644
--- a/test/ruby/test_time_tz.rb
+++ b/test/ruby/test_time_tz.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestTimeTZ < Test::Unit::TestCase
diff --git a/test/ruby/test_trace.rb b/test/ruby/test_trace.rb
index 775c458fb12..77be94e9bef 100644
--- a/test/ruby/test_trace.rb
+++ b/test/ruby/test_trace.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestTrace < Test::Unit::TestCase
diff --git a/test/ruby/test_transcode.rb b/test/ruby/test_transcode.rb
index fc74bd02f01..33e74671022 100644
--- a/test/ruby/test_transcode.rb
+++ b/test/ruby/test_transcode.rb
@@ -1,4 +1,5 @@
# encoding: ASCII-8BIT # make sure this runs in binary mode
+# frozen_string_literal: false
# some of the comments are in UTF-8
require 'test/unit'
diff --git a/test/ruby/test_undef.rb b/test/ruby/test_undef.rb
index e1c98076c0f..6d513a238fa 100644
--- a/test/ruby/test_undef.rb
+++ b/test/ruby/test_undef.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestUndef < Test::Unit::TestCase
diff --git a/test/ruby/test_unicode_escape.rb b/test/ruby/test_unicode_escape.rb
index 9d0d787e98b..e0ca430a4a1 100644
--- a/test/ruby/test_unicode_escape.rb
+++ b/test/ruby/test_unicode_escape.rb
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
require 'test/unit'
diff --git a/test/ruby/test_variable.rb b/test/ruby/test_variable.rb
index 06a8e2f72b4..667f9ee24ff 100644
--- a/test/ruby/test_variable.rb
+++ b/test/ruby/test_variable.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestVariable < Test::Unit::TestCase
diff --git a/test/ruby/test_weakmap.rb b/test/ruby/test_weakmap.rb
index 1279944a373..15463bb0304 100644
--- a/test/ruby/test_weakmap.rb
+++ b/test/ruby/test_weakmap.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestWeakMap < Test::Unit::TestCase
diff --git a/test/ruby/test_whileuntil.rb b/test/ruby/test_whileuntil.rb
index 3d8dbee9948..394383a7998 100644
--- a/test/ruby/test_whileuntil.rb
+++ b/test/ruby/test_whileuntil.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tmpdir'
diff --git a/test/ruby/test_yield.rb b/test/ruby/test_yield.rb
index 5c98bb88507..0690d3cdf45 100644
--- a/test/ruby/test_yield.rb
+++ b/test/ruby/test_yield.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'stringio'
diff --git a/test/ruby/ut_eof.rb b/test/ruby/ut_eof.rb
index 83325f2efcd..fcd7a639889 100644
--- a/test/ruby/ut_eof.rb
+++ b/test/ruby/ut_eof.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
module TestEOF
diff --git a/test/rubygems/bad_rake.rb b/test/rubygems/bad_rake.rb
index 379a4c986e3..dc603fdec1e 100644
--- a/test/rubygems/bad_rake.rb
+++ b/test/rubygems/bad_rake.rb
@@ -1 +1,2 @@
+# frozen_string_literal: false
exit 1
diff --git a/test/rubygems/bogussources.rb b/test/rubygems/bogussources.rb
index 008e3a1de59..f51ff60c37f 100644
--- a/test/rubygems/bogussources.rb
+++ b/test/rubygems/bogussources.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
diff --git a/test/rubygems/fake_certlib/openssl.rb b/test/rubygems/fake_certlib/openssl.rb
index 9de90c0a101..2b026df0d8c 100644
--- a/test/rubygems/fake_certlib/openssl.rb
+++ b/test/rubygems/fake_certlib/openssl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
diff --git a/test/rubygems/fix_openssl_warnings.rb b/test/rubygems/fix_openssl_warnings.rb
index 66d6cdf3eb3..e34551c8a96 100644
--- a/test/rubygems/fix_openssl_warnings.rb
+++ b/test/rubygems/fix_openssl_warnings.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# HACK: this drives me BONKERS
diff --git a/test/rubygems/foo/discover.rb b/test/rubygems/foo/discover.rb
index e69de29bb2d..1effd1c8b0f 100644
--- a/test/rubygems/foo/discover.rb
+++ b/test/rubygems/foo/discover.rb
@@ -0,0 +1 @@
+# frozen_string_literal: false
diff --git a/test/rubygems/good_rake.rb b/test/rubygems/good_rake.rb
index ca916d098da..2d5c76c13ab 100644
--- a/test/rubygems/good_rake.rb
+++ b/test/rubygems/good_rake.rb
@@ -1 +1,2 @@
+# frozen_string_literal: false
exit 0
diff --git a/test/rubygems/plugin/exception/rubygems_plugin.rb b/test/rubygems/plugin/exception/rubygems_plugin.rb
index 16c417e84d8..1ab8c553e21 100644
--- a/test/rubygems/plugin/exception/rubygems_plugin.rb
+++ b/test/rubygems/plugin/exception/rubygems_plugin.rb
@@ -1,2 +1,3 @@
+# frozen_string_literal: false
TestGem::TEST_PLUGIN_EXCEPTION = :loaded
raise Exception.new('boom')
diff --git a/test/rubygems/plugin/load/rubygems_plugin.rb b/test/rubygems/plugin/load/rubygems_plugin.rb
index c7c72777aaf..7336fd2b555 100644
--- a/test/rubygems/plugin/load/rubygems_plugin.rb
+++ b/test/rubygems/plugin/load/rubygems_plugin.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
class TestGem
TEST_PLUGIN_LOAD = :loaded
end
diff --git a/test/rubygems/plugin/standarderror/rubygems_plugin.rb b/test/rubygems/plugin/standarderror/rubygems_plugin.rb
index 4b577a65183..a0850bf98e5 100644
--- a/test/rubygems/plugin/standarderror/rubygems_plugin.rb
+++ b/test/rubygems/plugin/standarderror/rubygems_plugin.rb
@@ -1,2 +1,3 @@
+# frozen_string_literal: false
TestGem::TEST_PLUGIN_STANDARDERROR = :loaded
raise StandardError.new('boom')
diff --git a/test/rubygems/rubygems/commands/crash_command.rb b/test/rubygems/rubygems/commands/crash_command.rb
index 624be9fd328..07692b46098 100644
--- a/test/rubygems/rubygems/commands/crash_command.rb
+++ b/test/rubygems/rubygems/commands/crash_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
class Gem::Commands::CrashCommand < Gem::Command
raise "crash"
diff --git a/test/rubygems/rubygems_plugin.rb b/test/rubygems/rubygems_plugin.rb
index 6c08f97c6d4..80f78443b53 100644
--- a/test/rubygems/rubygems_plugin.rb
+++ b/test/rubygems/rubygems_plugin.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/command_manager'
##
diff --git a/test/rubygems/sff/discover.rb b/test/rubygems/sff/discover.rb
index e69de29bb2d..1effd1c8b0f 100644
--- a/test/rubygems/sff/discover.rb
+++ b/test/rubygems/sff/discover.rb
@@ -0,0 +1 @@
+# frozen_string_literal: false
diff --git a/test/rubygems/simple_gem.rb b/test/rubygems/simple_gem.rb
index c40002e2303..a6af71eef40 100644
--- a/test/rubygems/simple_gem.rb
+++ b/test/rubygems/simple_gem.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
SIMPLE_GEM = <<-GEMDATA
MD5SUM = "989bf34a1cbecd52e0ea66b662b3a405"
if $0 == __FILE__
diff --git a/test/rubygems/test_bundled_ca.rb b/test/rubygems/test_bundled_ca.rb
index 9b2b978af16..0f8b6bd6a92 100644
--- a/test/rubygems/test_bundled_ca.rb
+++ b/test/rubygems/test_bundled_ca.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'net/https'
require 'rubygems/request'
diff --git a/test/rubygems/test_config.rb b/test/rubygems/test_config.rb
index fb6d05c9862..207085b62df 100644
--- a/test/rubygems/test_config.rb
+++ b/test/rubygems/test_config.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems'
diff --git a/test/rubygems/test_deprecate.rb b/test/rubygems/test_deprecate.rb
index ed4e9aa5ffb..a29b565859c 100644
--- a/test/rubygems/test_deprecate.rb
+++ b/test/rubygems/test_deprecate.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
# require 'rubygems/builder'
# require 'rubygems/package'
diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb
index 1bcff8c2ff7..75ec9df06e4 100644
--- a/test/rubygems/test_gem.rb
+++ b/test/rubygems/test_gem.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems'
require 'rubygems/command'
diff --git a/test/rubygems/test_gem_available_set.rb b/test/rubygems/test_gem_available_set.rb
index 8b01112c11b..85551f02726 100644
--- a/test/rubygems/test_gem_available_set.rb
+++ b/test/rubygems/test_gem_available_set.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/available_set'
require 'rubygems/security'
diff --git a/test/rubygems/test_gem_command.rb b/test/rubygems/test_gem_command.rb
index 48cbc98d8c4..5c1c0718ecc 100644
--- a/test/rubygems/test_gem_command.rb
+++ b/test/rubygems/test_gem_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/command'
diff --git a/test/rubygems/test_gem_command_manager.rb b/test/rubygems/test_gem_command_manager.rb
index f6433c5cc34..fd25750c28a 100644
--- a/test/rubygems/test_gem_command_manager.rb
+++ b/test/rubygems/test_gem_command_manager.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/command_manager'
diff --git a/test/rubygems/test_gem_commands_build_command.rb b/test/rubygems/test_gem_commands_build_command.rb
index 5f870c07659..1fb80e1ddac 100644
--- a/test/rubygems/test_gem_commands_build_command.rb
+++ b/test/rubygems/test_gem_commands_build_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/build_command'
require 'rubygems/package'
diff --git a/test/rubygems/test_gem_commands_cert_command.rb b/test/rubygems/test_gem_commands_cert_command.rb
index 4c1dcc25c04..51793272115 100644
--- a/test/rubygems/test_gem_commands_cert_command.rb
+++ b/test/rubygems/test_gem_commands_cert_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/cert_command'
require 'rubygems/fix_openssl_warnings' if RUBY_VERSION < "1.9"
diff --git a/test/rubygems/test_gem_commands_check_command.rb b/test/rubygems/test_gem_commands_check_command.rb
index 67db6a32066..6b76349fbec 100644
--- a/test/rubygems/test_gem_commands_check_command.rb
+++ b/test/rubygems/test_gem_commands_check_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/check_command'
diff --git a/test/rubygems/test_gem_commands_cleanup_command.rb b/test/rubygems/test_gem_commands_cleanup_command.rb
index e8ad35fe8e7..4a6dae8ae5c 100644
--- a/test/rubygems/test_gem_commands_cleanup_command.rb
+++ b/test/rubygems/test_gem_commands_cleanup_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/cleanup_command'
require 'rubygems/installer'
diff --git a/test/rubygems/test_gem_commands_contents_command.rb b/test/rubygems/test_gem_commands_contents_command.rb
index ae8e49fdc31..ae02503524b 100644
--- a/test/rubygems/test_gem_commands_contents_command.rb
+++ b/test/rubygems/test_gem_commands_contents_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/contents_command'
diff --git a/test/rubygems/test_gem_commands_dependency_command.rb b/test/rubygems/test_gem_commands_dependency_command.rb
index 1409162cece..058b9a893ff 100644
--- a/test/rubygems/test_gem_commands_dependency_command.rb
+++ b/test/rubygems/test_gem_commands_dependency_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/dependency_command'
diff --git a/test/rubygems/test_gem_commands_environment_command.rb b/test/rubygems/test_gem_commands_environment_command.rb
index 81ff55d357a..2def4175fe4 100644
--- a/test/rubygems/test_gem_commands_environment_command.rb
+++ b/test/rubygems/test_gem_commands_environment_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/environment_command'
diff --git a/test/rubygems/test_gem_commands_fetch_command.rb b/test/rubygems/test_gem_commands_fetch_command.rb
index c452e79f147..4a57b93f504 100644
--- a/test/rubygems/test_gem_commands_fetch_command.rb
+++ b/test/rubygems/test_gem_commands_fetch_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/package'
require 'rubygems/security'
diff --git a/test/rubygems/test_gem_commands_generate_index_command.rb b/test/rubygems/test_gem_commands_generate_index_command.rb
index 2e478d9c9e4..1c7213983e2 100644
--- a/test/rubygems/test_gem_commands_generate_index_command.rb
+++ b/test/rubygems/test_gem_commands_generate_index_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/indexer'
require 'rubygems/commands/generate_index_command'
diff --git a/test/rubygems/test_gem_commands_help_command.rb b/test/rubygems/test_gem_commands_help_command.rb
index bed60958278..36512cb642f 100644
--- a/test/rubygems/test_gem_commands_help_command.rb
+++ b/test/rubygems/test_gem_commands_help_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rubygems"
require "rubygems/test_case"
require "rubygems/commands/help_command"
diff --git a/test/rubygems/test_gem_commands_install_command.rb b/test/rubygems/test_gem_commands_install_command.rb
index c12b17e613e..b8ddc97d7d2 100644
--- a/test/rubygems/test_gem_commands_install_command.rb
+++ b/test/rubygems/test_gem_commands_install_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/install_command'
require 'rubygems/request_set'
diff --git a/test/rubygems/test_gem_commands_list_command.rb b/test/rubygems/test_gem_commands_list_command.rb
index b03f166e1bb..67e5980576e 100644
--- a/test/rubygems/test_gem_commands_list_command.rb
+++ b/test/rubygems/test_gem_commands_list_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/list_command'
diff --git a/test/rubygems/test_gem_commands_lock_command.rb b/test/rubygems/test_gem_commands_lock_command.rb
index 8f30b7f2ccf..ae85c4653f8 100644
--- a/test/rubygems/test_gem_commands_lock_command.rb
+++ b/test/rubygems/test_gem_commands_lock_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/lock_command'
diff --git a/test/rubygems/test_gem_commands_mirror.rb b/test/rubygems/test_gem_commands_mirror.rb
index 3b01ab36451..c20ed3b4c8d 100644
--- a/test/rubygems/test_gem_commands_mirror.rb
+++ b/test/rubygems/test_gem_commands_mirror.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/mirror_command'
diff --git a/test/rubygems/test_gem_commands_open_command.rb b/test/rubygems/test_gem_commands_open_command.rb
index c1c76f95c99..e342c2c60cb 100644
--- a/test/rubygems/test_gem_commands_open_command.rb
+++ b/test/rubygems/test_gem_commands_open_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/open_command'
diff --git a/test/rubygems/test_gem_commands_outdated_command.rb b/test/rubygems/test_gem_commands_outdated_command.rb
index 1bc5acc1f4e..ee48d070fba 100644
--- a/test/rubygems/test_gem_commands_outdated_command.rb
+++ b/test/rubygems/test_gem_commands_outdated_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/outdated_command'
diff --git a/test/rubygems/test_gem_commands_owner_command.rb b/test/rubygems/test_gem_commands_owner_command.rb
index 5d7b66137e7..6d8275227f9 100644
--- a/test/rubygems/test_gem_commands_owner_command.rb
+++ b/test/rubygems/test_gem_commands_owner_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/owner_command'
diff --git a/test/rubygems/test_gem_commands_pristine_command.rb b/test/rubygems/test_gem_commands_pristine_command.rb
index b12fba511da..1160c37b619 100644
--- a/test/rubygems/test_gem_commands_pristine_command.rb
+++ b/test/rubygems/test_gem_commands_pristine_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/pristine_command'
diff --git a/test/rubygems/test_gem_commands_push_command.rb b/test/rubygems/test_gem_commands_push_command.rb
index 7d3d2efb886..06967e09903 100644
--- a/test/rubygems/test_gem_commands_push_command.rb
+++ b/test/rubygems/test_gem_commands_push_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/push_command'
diff --git a/test/rubygems/test_gem_commands_query_command.rb b/test/rubygems/test_gem_commands_query_command.rb
index 50cedbb50ea..da777312f0f 100644
--- a/test/rubygems/test_gem_commands_query_command.rb
+++ b/test/rubygems/test_gem_commands_query_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/query_command'
diff --git a/test/rubygems/test_gem_commands_search_command.rb b/test/rubygems/test_gem_commands_search_command.rb
index fb8debc245a..1bb3eb90f23 100644
--- a/test/rubygems/test_gem_commands_search_command.rb
+++ b/test/rubygems/test_gem_commands_search_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/search_command'
diff --git a/test/rubygems/test_gem_commands_server_command.rb b/test/rubygems/test_gem_commands_server_command.rb
index d0782f9a941..41866670615 100644
--- a/test/rubygems/test_gem_commands_server_command.rb
+++ b/test/rubygems/test_gem_commands_server_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/server_command'
diff --git a/test/rubygems/test_gem_commands_setup_command.rb b/test/rubygems/test_gem_commands_setup_command.rb
index 974c157a183..9748db79d52 100644
--- a/test/rubygems/test_gem_commands_setup_command.rb
+++ b/test/rubygems/test_gem_commands_setup_command.rb
@@ -1,4 +1,5 @@
# coding: UTF-8
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/setup_command'
diff --git a/test/rubygems/test_gem_commands_sources_command.rb b/test/rubygems/test_gem_commands_sources_command.rb
index 8ee0fd3cb78..f7af9d59629 100644
--- a/test/rubygems/test_gem_commands_sources_command.rb
+++ b/test/rubygems/test_gem_commands_sources_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/sources_command'
diff --git a/test/rubygems/test_gem_commands_specification_command.rb b/test/rubygems/test_gem_commands_specification_command.rb
index ccc2dbbae97..4759ba47c05 100644
--- a/test/rubygems/test_gem_commands_specification_command.rb
+++ b/test/rubygems/test_gem_commands_specification_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/specification_command'
diff --git a/test/rubygems/test_gem_commands_stale_command.rb b/test/rubygems/test_gem_commands_stale_command.rb
index 69b1e29e2df..c7b23574dac 100644
--- a/test/rubygems/test_gem_commands_stale_command.rb
+++ b/test/rubygems/test_gem_commands_stale_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/stale_command'
diff --git a/test/rubygems/test_gem_commands_uninstall_command.rb b/test/rubygems/test_gem_commands_uninstall_command.rb
index 8e90325f1f1..b001b7f2a8d 100644
--- a/test/rubygems/test_gem_commands_uninstall_command.rb
+++ b/test/rubygems/test_gem_commands_uninstall_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/installer_test_case'
require 'rubygems/commands/uninstall_command'
diff --git a/test/rubygems/test_gem_commands_unpack_command.rb b/test/rubygems/test_gem_commands_unpack_command.rb
index 05002f8832d..1420c8fa60b 100644
--- a/test/rubygems/test_gem_commands_unpack_command.rb
+++ b/test/rubygems/test_gem_commands_unpack_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/unpack_command'
diff --git a/test/rubygems/test_gem_commands_update_command.rb b/test/rubygems/test_gem_commands_update_command.rb
index 03894d75904..a49cc3ace19 100644
--- a/test/rubygems/test_gem_commands_update_command.rb
+++ b/test/rubygems/test_gem_commands_update_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/update_command'
diff --git a/test/rubygems/test_gem_commands_which_command.rb b/test/rubygems/test_gem_commands_which_command.rb
index 5c6afe93d14..2549579c842 100644
--- a/test/rubygems/test_gem_commands_which_command.rb
+++ b/test/rubygems/test_gem_commands_which_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/which_command'
diff --git a/test/rubygems/test_gem_commands_yank_command.rb b/test/rubygems/test_gem_commands_yank_command.rb
index 469fd15bd95..49e8eda6e54 100644
--- a/test/rubygems/test_gem_commands_yank_command.rb
+++ b/test/rubygems/test_gem_commands_yank_command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/commands/yank_command'
diff --git a/test/rubygems/test_gem_config_file.rb b/test/rubygems/test_gem_config_file.rb
index 3ababfbbfdf..6ed240f306d 100644
--- a/test/rubygems/test_gem_config_file.rb
+++ b/test/rubygems/test_gem_config_file.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/config_file'
diff --git a/test/rubygems/test_gem_dependency.rb b/test/rubygems/test_gem_dependency.rb
index 4c27ce73008..dcb722687b5 100644
--- a/test/rubygems/test_gem_dependency.rb
+++ b/test/rubygems/test_gem_dependency.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/dependency'
diff --git a/test/rubygems/test_gem_dependency_installer.rb b/test/rubygems/test_gem_dependency_installer.rb
index 03bcd04bc03..dfa9494a493 100644
--- a/test/rubygems/test_gem_dependency_installer.rb
+++ b/test/rubygems/test_gem_dependency_installer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/dependency_installer'
require 'rubygems/security'
diff --git a/test/rubygems/test_gem_dependency_list.rb b/test/rubygems/test_gem_dependency_list.rb
index d25359e84b1..8c63206f900 100644
--- a/test/rubygems/test_gem_dependency_list.rb
+++ b/test/rubygems/test_gem_dependency_list.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/dependency_list'
diff --git a/test/rubygems/test_gem_dependency_resolution_error.rb b/test/rubygems/test_gem_dependency_resolution_error.rb
index 0442082e6a3..bae561c8046 100644
--- a/test/rubygems/test_gem_dependency_resolution_error.rb
+++ b/test/rubygems/test_gem_dependency_resolution_error.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemDependencyResolutionError < Gem::TestCase
diff --git a/test/rubygems/test_gem_doctor.rb b/test/rubygems/test_gem_doctor.rb
index 1097528e189..5eb190377de 100644
--- a/test/rubygems/test_gem_doctor.rb
+++ b/test/rubygems/test_gem_doctor.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/doctor'
diff --git a/test/rubygems/test_gem_ext_builder.rb b/test/rubygems/test_gem_ext_builder.rb
index 02c7593628e..e8cc5aa57cb 100644
--- a/test/rubygems/test_gem_ext_builder.rb
+++ b/test/rubygems/test_gem_ext_builder.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/ext'
require 'rubygems/installer'
diff --git a/test/rubygems/test_gem_ext_cmake_builder.rb b/test/rubygems/test_gem_ext_cmake_builder.rb
index a36be476bef..7a296ccfd5c 100644
--- a/test/rubygems/test_gem_ext_cmake_builder.rb
+++ b/test/rubygems/test_gem_ext_cmake_builder.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/ext'
diff --git a/test/rubygems/test_gem_ext_configure_builder.rb b/test/rubygems/test_gem_ext_configure_builder.rb
index 610d60a9204..6cbe8ba5604 100644
--- a/test/rubygems/test_gem_ext_configure_builder.rb
+++ b/test/rubygems/test_gem_ext_configure_builder.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/ext'
diff --git a/test/rubygems/test_gem_ext_ext_conf_builder.rb b/test/rubygems/test_gem_ext_ext_conf_builder.rb
index 689734ac374..d71529b61b6 100644
--- a/test/rubygems/test_gem_ext_ext_conf_builder.rb
+++ b/test/rubygems/test_gem_ext_ext_conf_builder.rb
@@ -1,4 +1,5 @@
# coding: UTF-8
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/ext'
diff --git a/test/rubygems/test_gem_ext_rake_builder.rb b/test/rubygems/test_gem_ext_rake_builder.rb
index 0f4789a68f7..8eaa3f43c3f 100644
--- a/test/rubygems/test_gem_ext_rake_builder.rb
+++ b/test/rubygems/test_gem_ext_rake_builder.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/ext'
diff --git a/test/rubygems/test_gem_gem_runner.rb b/test/rubygems/test_gem_gem_runner.rb
index 85ff7253459..0ca66c90784 100644
--- a/test/rubygems/test_gem_gem_runner.rb
+++ b/test/rubygems/test_gem_gem_runner.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/gem_runner'
diff --git a/test/rubygems/test_gem_gemcutter_utilities.rb b/test/rubygems/test_gem_gemcutter_utilities.rb
index c117c8f8264..79be8b04774 100644
--- a/test/rubygems/test_gem_gemcutter_utilities.rb
+++ b/test/rubygems/test_gem_gemcutter_utilities.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems'
require 'rubygems/command'
diff --git a/test/rubygems/test_gem_impossible_dependencies_error.rb b/test/rubygems/test_gem_impossible_dependencies_error.rb
index 9c9825ca9ab..6a6c9c04cfa 100644
--- a/test/rubygems/test_gem_impossible_dependencies_error.rb
+++ b/test/rubygems/test_gem_impossible_dependencies_error.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemImpossibleDependenciesError < Gem::TestCase
diff --git a/test/rubygems/test_gem_indexer.rb b/test/rubygems/test_gem_indexer.rb
index 9622cd1abbd..1f255ff715a 100644
--- a/test/rubygems/test_gem_indexer.rb
+++ b/test/rubygems/test_gem_indexer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/indexer'
diff --git a/test/rubygems/test_gem_install_update_options.rb b/test/rubygems/test_gem_install_update_options.rb
index e7dc52a63c2..d81fa86e9cf 100644
--- a/test/rubygems/test_gem_install_update_options.rb
+++ b/test/rubygems/test_gem_install_update_options.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/installer_test_case'
require 'rubygems/install_update_options'
require 'rubygems/command'
diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb
index 2e5ac6ab76a..129c235abb2 100644
--- a/test/rubygems/test_gem_installer.rb
+++ b/test/rubygems/test_gem_installer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/installer_test_case'
class TestGemInstaller < Gem::InstallerTestCase
diff --git a/test/rubygems/test_gem_local_remote_options.rb b/test/rubygems/test_gem_local_remote_options.rb
index 1a0338bfe1a..4e02e2adebd 100644
--- a/test/rubygems/test_gem_local_remote_options.rb
+++ b/test/rubygems/test_gem_local_remote_options.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/local_remote_options'
require 'rubygems/command'
diff --git a/test/rubygems/test_gem_name_tuple.rb b/test/rubygems/test_gem_name_tuple.rb
index 38320f75909..250a1679946 100644
--- a/test/rubygems/test_gem_name_tuple.rb
+++ b/test/rubygems/test_gem_name_tuple.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/name_tuple'
diff --git a/test/rubygems/test_gem_package.rb b/test/rubygems/test_gem_package.rb
index bbb036d8497..7848bc2428e 100644
--- a/test/rubygems/test_gem_package.rb
+++ b/test/rubygems/test_gem_package.rb
@@ -1,4 +1,5 @@
# coding: UTF-8
+# frozen_string_literal: false
require 'rubygems/package/tar_test_case'
require 'rubygems/simple_gem'
diff --git a/test/rubygems/test_gem_package_old.rb b/test/rubygems/test_gem_package_old.rb
index 6236dbbaf25..ddc4e01abbe 100644
--- a/test/rubygems/test_gem_package_old.rb
+++ b/test/rubygems/test_gem_package_old.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/simple_gem'
diff --git a/test/rubygems/test_gem_package_tar_header.rb b/test/rubygems/test_gem_package_tar_header.rb
index 9977e282a1a..f1ece66aa70 100644
--- a/test/rubygems/test_gem_package_tar_header.rb
+++ b/test/rubygems/test_gem_package_tar_header.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/package/tar_test_case'
require 'rubygems/package'
diff --git a/test/rubygems/test_gem_package_tar_reader.rb b/test/rubygems/test_gem_package_tar_reader.rb
index aa45417b0dc..2b6b81e287c 100644
--- a/test/rubygems/test_gem_package_tar_reader.rb
+++ b/test/rubygems/test_gem_package_tar_reader.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/package/tar_test_case'
require 'rubygems/package'
diff --git a/test/rubygems/test_gem_package_tar_reader_entry.rb b/test/rubygems/test_gem_package_tar_reader_entry.rb
index 335601b5ca4..1138436f009 100644
--- a/test/rubygems/test_gem_package_tar_reader_entry.rb
+++ b/test/rubygems/test_gem_package_tar_reader_entry.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/package/tar_test_case'
require 'rubygems/package'
diff --git a/test/rubygems/test_gem_package_tar_writer.rb b/test/rubygems/test_gem_package_tar_writer.rb
index dac9a54b46b..29b7fdb3b98 100644
--- a/test/rubygems/test_gem_package_tar_writer.rb
+++ b/test/rubygems/test_gem_package_tar_writer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/package/tar_test_case'
require 'rubygems/package/tar_writer'
require 'minitest/mock'
diff --git a/test/rubygems/test_gem_package_task.rb b/test/rubygems/test_gem_package_task.rb
index 5b83fc4e3c5..f93fc4cc544 100644
--- a/test/rubygems/test_gem_package_task.rb
+++ b/test/rubygems/test_gem_package_task.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems'
begin
diff --git a/test/rubygems/test_gem_path_support.rb b/test/rubygems/test_gem_path_support.rb
index 879cc98b5fc..e9e22d0fdc1 100644
--- a/test/rubygems/test_gem_path_support.rb
+++ b/test/rubygems/test_gem_path_support.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems'
require 'fileutils'
diff --git a/test/rubygems/test_gem_platform.rb b/test/rubygems/test_gem_platform.rb
index 164977224ce..9636afc77fb 100644
--- a/test/rubygems/test_gem_platform.rb
+++ b/test/rubygems/test_gem_platform.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/platform'
require 'rbconfig'
diff --git a/test/rubygems/test_gem_rdoc.rb b/test/rubygems/test_gem_rdoc.rb
index 3ff06fe0d55..69d4e2071fb 100644
--- a/test/rubygems/test_gem_rdoc.rb
+++ b/test/rubygems/test_gem_rdoc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems'
require 'rubygems/test_case'
require 'rubygems/rdoc'
diff --git a/test/rubygems/test_gem_remote_fetcher.rb b/test/rubygems/test_gem_remote_fetcher.rb
index 5598e46b266..8b469214019 100644
--- a/test/rubygems/test_gem_remote_fetcher.rb
+++ b/test/rubygems/test_gem_remote_fetcher.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'webrick'
diff --git a/test/rubygems/test_gem_request.rb b/test/rubygems/test_gem_request.rb
index 397f575f37c..98cdc80af4e 100644
--- a/test/rubygems/test_gem_request.rb
+++ b/test/rubygems/test_gem_request.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/request'
require 'ostruct'
diff --git a/test/rubygems/test_gem_request_connection_pools.rb b/test/rubygems/test_gem_request_connection_pools.rb
index 1944a4f3516..30f273029be 100644
--- a/test/rubygems/test_gem_request_connection_pools.rb
+++ b/test/rubygems/test_gem_request_connection_pools.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/request'
require 'timeout'
diff --git a/test/rubygems/test_gem_request_set.rb b/test/rubygems/test_gem_request_set.rb
index 8afab65356e..136990264ee 100644
--- a/test/rubygems/test_gem_request_set.rb
+++ b/test/rubygems/test_gem_request_set.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/request_set'
diff --git a/test/rubygems/test_gem_request_set_gem_dependency_api.rb b/test/rubygems/test_gem_request_set_gem_dependency_api.rb
index 5d7f2d1296a..6bbe8a6d4fe 100644
--- a/test/rubygems/test_gem_request_set_gem_dependency_api.rb
+++ b/test/rubygems/test_gem_request_set_gem_dependency_api.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/request_set'
diff --git a/test/rubygems/test_gem_request_set_lockfile.rb b/test/rubygems/test_gem_request_set_lockfile.rb
index 3b85e256f27..3d30a9aa63e 100644
--- a/test/rubygems/test_gem_request_set_lockfile.rb
+++ b/test/rubygems/test_gem_request_set_lockfile.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/request_set'
require 'rubygems/request_set/lockfile'
diff --git a/test/rubygems/test_gem_request_set_lockfile_parser.rb b/test/rubygems/test_gem_request_set_lockfile_parser.rb
index c5b2b19c0ed..afb92e28402 100644
--- a/test/rubygems/test_gem_request_set_lockfile_parser.rb
+++ b/test/rubygems/test_gem_request_set_lockfile_parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/request_set'
require 'rubygems/request_set/lockfile'
diff --git a/test/rubygems/test_gem_request_set_lockfile_tokenizer.rb b/test/rubygems/test_gem_request_set_lockfile_tokenizer.rb
index b11858361e7..230d6118bf0 100644
--- a/test/rubygems/test_gem_request_set_lockfile_tokenizer.rb
+++ b/test/rubygems/test_gem_request_set_lockfile_tokenizer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/request_set'
require 'rubygems/request_set/lockfile'
diff --git a/test/rubygems/test_gem_requirement.rb b/test/rubygems/test_gem_requirement.rb
index 234edb4ec35..f608d9458d7 100644
--- a/test/rubygems/test_gem_requirement.rb
+++ b/test/rubygems/test_gem_requirement.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require "rubygems/requirement"
diff --git a/test/rubygems/test_gem_resolver.rb b/test/rubygems/test_gem_resolver.rb
index a944a69d9aa..54e48178083 100644
--- a/test/rubygems/test_gem_resolver.rb
+++ b/test/rubygems/test_gem_resolver.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolver < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_activation_request.rb b/test/rubygems/test_gem_resolver_activation_request.rb
index c9163e25dec..3456c427228 100644
--- a/test/rubygems/test_gem_resolver_activation_request.rb
+++ b/test/rubygems/test_gem_resolver_activation_request.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverActivationRequest < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_api_set.rb b/test/rubygems/test_gem_resolver_api_set.rb
index 4ae54d71b33..beb580f3470 100644
--- a/test/rubygems/test_gem_resolver_api_set.rb
+++ b/test/rubygems/test_gem_resolver_api_set.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverAPISet < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_api_specification.rb b/test/rubygems/test_gem_resolver_api_specification.rb
index dfa61e98a04..f4335c74f73 100644
--- a/test/rubygems/test_gem_resolver_api_specification.rb
+++ b/test/rubygems/test_gem_resolver_api_specification.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverAPISpecification < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_best_set.rb b/test/rubygems/test_gem_resolver_best_set.rb
index 055438c89bb..db2cbea1011 100644
--- a/test/rubygems/test_gem_resolver_best_set.rb
+++ b/test/rubygems/test_gem_resolver_best_set.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverBestSet < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_composed_set.rb b/test/rubygems/test_gem_resolver_composed_set.rb
index f8455e1aa47..6032bcf7e2c 100644
--- a/test/rubygems/test_gem_resolver_composed_set.rb
+++ b/test/rubygems/test_gem_resolver_composed_set.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverComposedSet < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_conflict.rb b/test/rubygems/test_gem_resolver_conflict.rb
index 0cef0cad2a5..d4d81fab6c9 100644
--- a/test/rubygems/test_gem_resolver_conflict.rb
+++ b/test/rubygems/test_gem_resolver_conflict.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverConflict < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_dependency_request.rb b/test/rubygems/test_gem_resolver_dependency_request.rb
index 0665883971f..2587c645db6 100644
--- a/test/rubygems/test_gem_resolver_dependency_request.rb
+++ b/test/rubygems/test_gem_resolver_dependency_request.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverDependencyRequest < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_git_set.rb b/test/rubygems/test_gem_resolver_git_set.rb
index 36591934562..c6fca209059 100644
--- a/test/rubygems/test_gem_resolver_git_set.rb
+++ b/test/rubygems/test_gem_resolver_git_set.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverGitSet < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_git_specification.rb b/test/rubygems/test_gem_resolver_git_specification.rb
index 7ab297923cf..f484b1c7797 100644
--- a/test/rubygems/test_gem_resolver_git_specification.rb
+++ b/test/rubygems/test_gem_resolver_git_specification.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/installer'
diff --git a/test/rubygems/test_gem_resolver_index_set.rb b/test/rubygems/test_gem_resolver_index_set.rb
index 04ef8844c19..abac704712e 100644
--- a/test/rubygems/test_gem_resolver_index_set.rb
+++ b/test/rubygems/test_gem_resolver_index_set.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverIndexSet < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_index_specification.rb b/test/rubygems/test_gem_resolver_index_specification.rb
index e52f9c7fc68..6e9605218d6 100644
--- a/test/rubygems/test_gem_resolver_index_specification.rb
+++ b/test/rubygems/test_gem_resolver_index_specification.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/available_set'
diff --git a/test/rubygems/test_gem_resolver_installed_specification.rb b/test/rubygems/test_gem_resolver_installed_specification.rb
index d52876f0301..f24d9ec2239 100644
--- a/test/rubygems/test_gem_resolver_installed_specification.rb
+++ b/test/rubygems/test_gem_resolver_installed_specification.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverInstalledSpecification < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_installer_set.rb b/test/rubygems/test_gem_resolver_installer_set.rb
index 039582e6900..a8627ed1419 100644
--- a/test/rubygems/test_gem_resolver_installer_set.rb
+++ b/test/rubygems/test_gem_resolver_installer_set.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverInstallerSet < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_local_specification.rb b/test/rubygems/test_gem_resolver_local_specification.rb
index fc3175a3f71..8eac4421711 100644
--- a/test/rubygems/test_gem_resolver_local_specification.rb
+++ b/test/rubygems/test_gem_resolver_local_specification.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/available_set'
diff --git a/test/rubygems/test_gem_resolver_lock_set.rb b/test/rubygems/test_gem_resolver_lock_set.rb
index fdcb8ffa986..745b5dd85bd 100644
--- a/test/rubygems/test_gem_resolver_lock_set.rb
+++ b/test/rubygems/test_gem_resolver_lock_set.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverLockSet < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_lock_specification.rb b/test/rubygems/test_gem_resolver_lock_specification.rb
index 93240356eff..eabfec0a0da 100644
--- a/test/rubygems/test_gem_resolver_lock_specification.rb
+++ b/test/rubygems/test_gem_resolver_lock_specification.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/installer'
require 'rubygems/resolver'
diff --git a/test/rubygems/test_gem_resolver_requirement_list.rb b/test/rubygems/test_gem_resolver_requirement_list.rb
index fd9dccb70f7..c7192475b8a 100644
--- a/test/rubygems/test_gem_resolver_requirement_list.rb
+++ b/test/rubygems/test_gem_resolver_requirement_list.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverRequirementList < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_specification.rb b/test/rubygems/test_gem_resolver_specification.rb
index e1ec68a22c4..73bda1f9896 100644
--- a/test/rubygems/test_gem_resolver_specification.rb
+++ b/test/rubygems/test_gem_resolver_specification.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverSpecification < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_vendor_set.rb b/test/rubygems/test_gem_resolver_vendor_set.rb
index 618e251de24..6bb282ad044 100644
--- a/test/rubygems/test_gem_resolver_vendor_set.rb
+++ b/test/rubygems/test_gem_resolver_vendor_set.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverVendorSet < Gem::TestCase
diff --git a/test/rubygems/test_gem_resolver_vendor_specification.rb b/test/rubygems/test_gem_resolver_vendor_specification.rb
index 3d94cfed00d..4d72e348101 100644
--- a/test/rubygems/test_gem_resolver_vendor_specification.rb
+++ b/test/rubygems/test_gem_resolver_vendor_specification.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemResolverVendorSpecification < Gem::TestCase
diff --git a/test/rubygems/test_gem_security.rb b/test/rubygems/test_gem_security.rb
index b8747b79c3e..d653d2c2626 100644
--- a/test/rubygems/test_gem_security.rb
+++ b/test/rubygems/test_gem_security.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/security'
require 'rubygems/fix_openssl_warnings' if RUBY_VERSION < "1.9"
diff --git a/test/rubygems/test_gem_security_policy.rb b/test/rubygems/test_gem_security_policy.rb
index d708306e79f..b911d528df0 100644
--- a/test/rubygems/test_gem_security_policy.rb
+++ b/test/rubygems/test_gem_security_policy.rb
@@ -1,4 +1,5 @@
# coding: UTF-8
+# frozen_string_literal: false
require 'rubygems/test_case'
diff --git a/test/rubygems/test_gem_security_signer.rb b/test/rubygems/test_gem_security_signer.rb
index f077a46413e..f473d406045 100644
--- a/test/rubygems/test_gem_security_signer.rb
+++ b/test/rubygems/test_gem_security_signer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
unless defined?(OpenSSL::SSL) then
diff --git a/test/rubygems/test_gem_security_trust_dir.rb b/test/rubygems/test_gem_security_trust_dir.rb
index 475db2e7902..387c0925b62 100644
--- a/test/rubygems/test_gem_security_trust_dir.rb
+++ b/test/rubygems/test_gem_security_trust_dir.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
unless defined?(OpenSSL::SSL) then
diff --git a/test/rubygems/test_gem_server.rb b/test/rubygems/test_gem_server.rb
index 98a703c9d22..0ebc7d573a6 100644
--- a/test/rubygems/test_gem_server.rb
+++ b/test/rubygems/test_gem_server.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/server'
require 'stringio'
diff --git a/test/rubygems/test_gem_silent_ui.rb b/test/rubygems/test_gem_silent_ui.rb
index 01ff79d828a..0caf362d460 100644
--- a/test/rubygems/test_gem_silent_ui.rb
+++ b/test/rubygems/test_gem_silent_ui.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/user_interaction'
require 'timeout'
diff --git a/test/rubygems/test_gem_source.rb b/test/rubygems/test_gem_source.rb
index 7d23eeea5e4..d4a8a0142dc 100644
--- a/test/rubygems/test_gem_source.rb
+++ b/test/rubygems/test_gem_source.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/source'
require 'rubygems/indexer'
diff --git a/test/rubygems/test_gem_source_fetch_problem.rb b/test/rubygems/test_gem_source_fetch_problem.rb
index e8d4785a31c..34ac743da7d 100644
--- a/test/rubygems/test_gem_source_fetch_problem.rb
+++ b/test/rubygems/test_gem_source_fetch_problem.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemSourceFetchProblem < Gem::TestCase
diff --git a/test/rubygems/test_gem_source_git.rb b/test/rubygems/test_gem_source_git.rb
index 7e5bccacaec..ea86d6657be 100644
--- a/test/rubygems/test_gem_source_git.rb
+++ b/test/rubygems/test_gem_source_git.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/source'
diff --git a/test/rubygems/test_gem_source_installed.rb b/test/rubygems/test_gem_source_installed.rb
index 9eaddf72fdd..0337036410b 100644
--- a/test/rubygems/test_gem_source_installed.rb
+++ b/test/rubygems/test_gem_source_installed.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/source'
diff --git a/test/rubygems/test_gem_source_list.rb b/test/rubygems/test_gem_source_list.rb
index 43db204a50f..23ae749affe 100644
--- a/test/rubygems/test_gem_source_list.rb
+++ b/test/rubygems/test_gem_source_list.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/source_list'
require 'rubygems/test_case'
diff --git a/test/rubygems/test_gem_source_local.rb b/test/rubygems/test_gem_source_local.rb
index 19e1c4b7591..05c4c7e57cb 100644
--- a/test/rubygems/test_gem_source_local.rb
+++ b/test/rubygems/test_gem_source_local.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/source'
diff --git a/test/rubygems/test_gem_source_lock.rb b/test/rubygems/test_gem_source_lock.rb
index 23f063da924..c5596d248b6 100644
--- a/test/rubygems/test_gem_source_lock.rb
+++ b/test/rubygems/test_gem_source_lock.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemSourceLock < Gem::TestCase
diff --git a/test/rubygems/test_gem_source_specific_file.rb b/test/rubygems/test_gem_source_specific_file.rb
index 12ef7f5b7c3..a54260dfc64 100644
--- a/test/rubygems/test_gem_source_specific_file.rb
+++ b/test/rubygems/test_gem_source_specific_file.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/source'
diff --git a/test/rubygems/test_gem_source_vendor.rb b/test/rubygems/test_gem_source_vendor.rb
index 1d9ae35e84f..f59e6a7fdf7 100644
--- a/test/rubygems/test_gem_source_vendor.rb
+++ b/test/rubygems/test_gem_source_vendor.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/source'
diff --git a/test/rubygems/test_gem_spec_fetcher.rb b/test/rubygems/test_gem_spec_fetcher.rb
index 6ee1a52fc7c..876094f9b76 100644
--- a/test/rubygems/test_gem_spec_fetcher.rb
+++ b/test/rubygems/test_gem_spec_fetcher.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/spec_fetcher'
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index 6c7ee6054a4..cfca49a18f8 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'benchmark'
require 'rubygems/test_case'
require 'pathname'
diff --git a/test/rubygems/test_gem_stream_ui.rb b/test/rubygems/test_gem_stream_ui.rb
index bea187e8f36..aa6b19f8be3 100644
--- a/test/rubygems/test_gem_stream_ui.rb
+++ b/test/rubygems/test_gem_stream_ui.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/user_interaction'
require 'timeout'
diff --git a/test/rubygems/test_gem_stub_specification.rb b/test/rubygems/test_gem_stub_specification.rb
index 786a3085561..5ffbc57a9a5 100644
--- a/test/rubygems/test_gem_stub_specification.rb
+++ b/test/rubygems/test_gem_stub_specification.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rubygems/test_case"
require "rubygems/stub_specification"
diff --git a/test/rubygems/test_gem_text.rb b/test/rubygems/test_gem_text.rb
index 90f81fcd512..855e9ac09db 100644
--- a/test/rubygems/test_gem_text.rb
+++ b/test/rubygems/test_gem_text.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require "rubygems/text"
diff --git a/test/rubygems/test_gem_uninstaller.rb b/test/rubygems/test_gem_uninstaller.rb
index c682f72c382..13cc6eb39ff 100644
--- a/test/rubygems/test_gem_uninstaller.rb
+++ b/test/rubygems/test_gem_uninstaller.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/installer_test_case'
require 'rubygems/uninstaller'
diff --git a/test/rubygems/test_gem_unsatisfiable_dependency_error.rb b/test/rubygems/test_gem_unsatisfiable_dependency_error.rb
index 6418c5d20e5..c7aba3d54af 100644
--- a/test/rubygems/test_gem_unsatisfiable_dependency_error.rb
+++ b/test/rubygems/test_gem_unsatisfiable_dependency_error.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestGemUnsatisfiableDependencyError < Gem::TestCase
diff --git a/test/rubygems/test_gem_uri_formatter.rb b/test/rubygems/test_gem_uri_formatter.rb
index 628b7c54de9..036e7cd673a 100644
--- a/test/rubygems/test_gem_uri_formatter.rb
+++ b/test/rubygems/test_gem_uri_formatter.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/uri_formatter'
diff --git a/test/rubygems/test_gem_util.rb b/test/rubygems/test_gem_util.rb
index 2546262d7fe..8b763f0ff1e 100644
--- a/test/rubygems/test_gem_util.rb
+++ b/test/rubygems/test_gem_util.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/util'
diff --git a/test/rubygems/test_gem_validator.rb b/test/rubygems/test_gem_validator.rb
index 4af8b524e19..4770bdfb648 100644
--- a/test/rubygems/test_gem_validator.rb
+++ b/test/rubygems/test_gem_validator.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require "rubygems/simple_gem"
require 'rubygems/validator'
diff --git a/test/rubygems/test_gem_version.rb b/test/rubygems/test_gem_version.rb
index 5a65b5c9c7b..ffe4d028f55 100644
--- a/test/rubygems/test_gem_version.rb
+++ b/test/rubygems/test_gem_version.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require "rubygems/version"
diff --git a/test/rubygems/test_gem_version_option.rb b/test/rubygems/test_gem_version_option.rb
index d6035ab8003..9af7c63bde0 100644
--- a/test/rubygems/test_gem_version_option.rb
+++ b/test/rubygems/test_gem_version_option.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems/command'
require 'rubygems/version_option'
diff --git a/test/rubygems/test_kernel.rb b/test/rubygems/test_kernel.rb
index ee8b2487971..f78fe1d3177 100644
--- a/test/rubygems/test_kernel.rb
+++ b/test/rubygems/test_kernel.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
class TestKernel < Gem::TestCase
diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb
index ec6662f917c..b0808f96d8f 100644
--- a/test/rubygems/test_require.rb
+++ b/test/rubygems/test_require.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems/test_case'
require 'rubygems'
diff --git a/test/runner.rb b/test/runner.rb
index 13506e592ef..1fe32fcfc8e 100644
--- a/test/runner.rb
+++ b/test/runner.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rbconfig'
src_testdir = File.dirname(File.realpath(__FILE__))
diff --git a/test/scanf/test_scanf.rb b/test/scanf/test_scanf.rb
index 93bb63b6aa0..827eb2fc3bb 100644
--- a/test/scanf/test_scanf.rb
+++ b/test/scanf/test_scanf.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# $Id$
#
# scanf for Ruby
diff --git a/test/scanf/test_scanfblocks.rb b/test/scanf/test_scanfblocks.rb
index aea5033a540..1c2265a825a 100644
--- a/test/scanf/test_scanfblocks.rb
+++ b/test/scanf/test_scanfblocks.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# $Id$
#
# scanf for Ruby
diff --git a/test/scanf/test_scanfio.rb b/test/scanf/test_scanfio.rb
index 969a8ad7731..cec8750aef5 100644
--- a/test/scanf/test_scanfio.rb
+++ b/test/scanf/test_scanfio.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# $Id$
#
# scanf for Ruby
diff --git a/test/sdbm/test_sdbm.rb b/test/sdbm/test_sdbm.rb
index f415584fa2c..154bccebc4c 100644
--- a/test/sdbm/test_sdbm.rb
+++ b/test/sdbm/test_sdbm.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tmpdir'
diff --git a/test/shell/test_command_processor.rb b/test/shell/test_command_processor.rb
index 66e4244ad3a..99fe1b222a8 100644
--- a/test/shell/test_command_processor.rb
+++ b/test/shell/test_command_processor.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'shell'
require 'tmpdir'
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb
index bd4a0f1a515..17ae9ab8485 100644
--- a/test/stringio/test_stringio.rb
+++ b/test/stringio/test_stringio.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'stringio'
require_relative '../ruby/ut_eof'
diff --git a/test/strscan/test_stringscanner.rb b/test/strscan/test_stringscanner.rb
index 260ab6c5586..ee97e454feb 100644
--- a/test/strscan/test_stringscanner.rb
+++ b/test/strscan/test_stringscanner.rb
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
#
# test/strscan/test_stringscanner.rb
#
diff --git a/test/syslog/test_syslog_logger.rb b/test/syslog/test_syslog_logger.rb
index d1998a18ce1..5e0cc765a90 100644
--- a/test/syslog/test_syslog_logger.rb
+++ b/test/syslog/test_syslog_logger.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'test/unit'
require 'tempfile'
begin
diff --git a/test/test_abbrev.rb b/test/test_abbrev.rb
index f342c59e205..be9b7d50051 100644
--- a/test/test_abbrev.rb
+++ b/test/test_abbrev.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'abbrev'
diff --git a/test/test_cmath.rb b/test/test_cmath.rb
index 979082ae42b..2752ce782c5 100644
--- a/test/test_cmath.rb
+++ b/test/test_cmath.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'cmath'
diff --git a/test/test_delegate.rb b/test/test_delegate.rb
index 6270cc61b6e..629d191fade 100644
--- a/test/test_delegate.rb
+++ b/test/test_delegate.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'delegate'
diff --git a/test/test_find.rb b/test/test_find.rb
index 2fa81eb0b41..d0e92067f11 100644
--- a/test/test_find.rb
+++ b/test/test_find.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'find'
require 'tmpdir'
diff --git a/test/test_forwardable.rb b/test/test_forwardable.rb
index 6dd015e5a40..a3d03f438b8 100644
--- a/test/test_forwardable.rb
+++ b/test/test_forwardable.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'forwardable'
diff --git a/test/test_ipaddr.rb b/test/test_ipaddr.rb
index 88b4a01bcbb..b9209f72d9b 100644
--- a/test/test_ipaddr.rb
+++ b/test/test_ipaddr.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'ipaddr'
diff --git a/test/test_mathn.rb b/test/test_mathn.rb
index 8a482f3fed4..aaf132ba88f 100644
--- a/test/test_mathn.rb
+++ b/test/test_mathn.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
# mathn redefines too much. It must be isolated to child processes.
diff --git a/test/test_mutex_m.rb b/test/test_mutex_m.rb
index a29f3f44b5a..e31c086f013 100644
--- a/test/test_mutex_m.rb
+++ b/test/test_mutex_m.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'thread'
require 'mutex_m'
diff --git a/test/test_observer.rb b/test/test_observer.rb
index e2c159ad09f..c2fa7280043 100644
--- a/test/test_observer.rb
+++ b/test/test_observer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'observer'
diff --git a/test/test_prime.rb b/test/test_prime.rb
index f8abebc3230..b48ccae3194 100644
--- a/test/test_prime.rb
+++ b/test/test_prime.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'prime'
require 'timeout'
diff --git a/test/test_pstore.rb b/test/test_pstore.rb
index e028ed68b4f..e7fe4f1d154 100644
--- a/test/test_pstore.rb
+++ b/test/test_pstore.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'pstore'
require 'tmpdir'
diff --git a/test/test_pty.rb b/test/test_pty.rb
index 0ec4f967bdd..cedf00f9189 100644
--- a/test/test_pty.rb
+++ b/test/test_pty.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'shellwords'
require 'tmpdir'
diff --git a/test/test_rbconfig.rb b/test/test_rbconfig.rb
index 36204500bd7..1bbf01b9a68 100644
--- a/test/test_rbconfig.rb
+++ b/test/test_rbconfig.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'rbconfig'
require 'shellwords'
diff --git a/test/test_securerandom.rb b/test/test_securerandom.rb
index da48a3b341f..515d05e6b2a 100644
--- a/test/test_securerandom.rb
+++ b/test/test_securerandom.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'securerandom'
require 'tempfile'
diff --git a/test/test_set.rb b/test/test_set.rb
index 66944f576f6..15c5a13d21c 100644
--- a/test/test_set.rb
+++ b/test/test_set.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'set'
diff --git a/test/test_shellwords.rb b/test/test_shellwords.rb
index c160ed9d1ca..2916d5dda63 100644
--- a/test/test_shellwords.rb
+++ b/test/test_shellwords.rb
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
require 'test/unit'
require 'shellwords'
diff --git a/test/test_singleton.rb b/test/test_singleton.rb
index 36d49372c1e..b3c48bb5f5d 100644
--- a/test/test_singleton.rb
+++ b/test/test_singleton.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'singleton'
diff --git a/test/test_syslog.rb b/test/test_syslog.rb
index 7f1f76fcb61..c66e5f5fb25 100644
--- a/test/test_syslog.rb
+++ b/test/test_syslog.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# Please only run this test on machines reasonable for testing.
# If in doubt, ask your admin.
diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb
index bcd953554a4..c8af2f5b4d2 100644
--- a/test/test_tempfile.rb
+++ b/test/test_tempfile.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tempfile'
require 'thread'
diff --git a/test/test_timeout.rb b/test/test_timeout.rb
index 911ad8c2e0f..94ae83e8202 100644
--- a/test/test_timeout.rb
+++ b/test/test_timeout.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'timeout'
require 'thread'
diff --git a/test/test_tmpdir.rb b/test/test_tmpdir.rb
index 842b2ded907..4fc4bca4d59 100644
--- a/test/test_tmpdir.rb
+++ b/test/test_tmpdir.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tmpdir'
diff --git a/test/test_tracer.rb b/test/test_tracer.rb
index b4ed7fce9fd..6622b536631 100644
--- a/test/test_tracer.rb
+++ b/test/test_tracer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'tmpdir'
diff --git a/test/test_unicode_normalize.rb b/test/test_unicode_normalize.rb
index 3dfac8b0666..548c8a8cee2 100644
--- a/test/test_unicode_normalize.rb
+++ b/test/test_unicode_normalize.rb
@@ -1,4 +1,5 @@
# coding: utf-8
+# frozen_string_literal: false
# Copyright Ayumu Nojima (野島 歩) and Martin J. Dürst (duerst@it.aoyama.ac.jp)
diff --git a/test/test_weakref.rb b/test/test_weakref.rb
index 9f671f4e22d..7520e6bc83d 100644
--- a/test/test_weakref.rb
+++ b/test/test_weakref.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'weakref'
diff --git a/test/test_win32api.rb b/test/test_win32api.rb
index b1856a33647..6e39ca3360b 100644
--- a/test/test_win32api.rb
+++ b/test/test_win32api.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
begin
require "Win32API"
diff --git a/test/testunit/test4test_hideskip.rb b/test/testunit/test4test_hideskip.rb
index 7dba6f57b48..b870c76a84a 100644
--- a/test/testunit/test4test_hideskip.rb
+++ b/test/testunit/test4test_hideskip.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
require 'test/unit'
diff --git a/test/testunit/test4test_redefinition.rb b/test/testunit/test4test_redefinition.rb
index 77cfd450151..894bc3d905a 100644
--- a/test/testunit/test4test_redefinition.rb
+++ b/test/testunit/test4test_redefinition.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
require 'test/unit'
diff --git a/test/testunit/test4test_sorting.rb b/test/testunit/test4test_sorting.rb
index b8bb9430b5e..4848a78b5d4 100644
--- a/test/testunit/test4test_sorting.rb
+++ b/test/testunit/test4test_sorting.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
require 'test/unit'
diff --git a/test/testunit/test_assertion.rb b/test/testunit/test_assertion.rb
index 374d6e022bd..4cd7bd7e452 100644
--- a/test/testunit/test_assertion.rb
+++ b/test/testunit/test_assertion.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestAssertion < Test::Unit::TestCase
def test_wrong_assertion
diff --git a/test/testunit/test_hideskip.rb b/test/testunit/test_hideskip.rb
index e696b5e1dfa..a8d7b5500ca 100644
--- a/test/testunit/test_hideskip.rb
+++ b/test/testunit/test_hideskip.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestHideSkip < Test::Unit::TestCase
diff --git a/test/testunit/test_parallel.rb b/test/testunit/test_parallel.rb
index f068b344df5..3d85f9c211f 100644
--- a/test/testunit/test_parallel.rb
+++ b/test/testunit/test_parallel.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'timeout'
diff --git a/test/testunit/test_redefinition.rb b/test/testunit/test_redefinition.rb
index ed116213514..9129e554899 100644
--- a/test/testunit/test_redefinition.rb
+++ b/test/testunit/test_redefinition.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestRedefinition < Test::Unit::TestCase
diff --git a/test/testunit/test_sorting.rb b/test/testunit/test_sorting.rb
index e13ca1fec6e..f9de3ec1541 100644
--- a/test/testunit/test_sorting.rb
+++ b/test/testunit/test_sorting.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestTestUnitSorting < Test::Unit::TestCase
diff --git a/test/testunit/tests_for_parallel/ptest_first.rb b/test/testunit/tests_for_parallel/ptest_first.rb
index 66c7704a456..f8687335b5d 100644
--- a/test/testunit/tests_for_parallel/ptest_first.rb
+++ b/test/testunit/tests_for_parallel/ptest_first.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestA < Test::Unit::TestCase
diff --git a/test/testunit/tests_for_parallel/ptest_forth.rb b/test/testunit/tests_for_parallel/ptest_forth.rb
index 46c88da5191..8831676e190 100644
--- a/test/testunit/tests_for_parallel/ptest_forth.rb
+++ b/test/testunit/tests_for_parallel/ptest_forth.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestE < Test::Unit::TestCase
diff --git a/test/testunit/tests_for_parallel/ptest_second.rb b/test/testunit/tests_for_parallel/ptest_second.rb
index 7004d684938..a793c17eb33 100644
--- a/test/testunit/tests_for_parallel/ptest_second.rb
+++ b/test/testunit/tests_for_parallel/ptest_second.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestB < Test::Unit::TestCase
diff --git a/test/testunit/tests_for_parallel/ptest_third.rb b/test/testunit/tests_for_parallel/ptest_third.rb
index 338fc32a917..3f448ecfc13 100644
--- a/test/testunit/tests_for_parallel/ptest_third.rb
+++ b/test/testunit/tests_for_parallel/ptest_third.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
class TestD < Test::Unit::TestCase
diff --git a/test/testunit/tests_for_parallel/runner.rb b/test/testunit/tests_for_parallel/runner.rb
index e262e1e6c77..bece739917a 100644
--- a/test/testunit/tests_for_parallel/runner.rb
+++ b/test/testunit/tests_for_parallel/runner.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rbconfig'
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../lib"
diff --git a/test/thread/test_cv.rb b/test/thread/test_cv.rb
index b399b479f46..53c7d279b43 100644
--- a/test/thread/test_cv.rb
+++ b/test/thread/test_cv.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'thread'
require 'tmpdir'
diff --git a/test/thread/test_queue.rb b/test/thread/test_queue.rb
index 0a1ae483870..32662babed8 100644
--- a/test/thread/test_queue.rb
+++ b/test/thread/test_queue.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'thread'
require 'tmpdir'
diff --git a/test/thread/test_sync.rb b/test/thread/test_sync.rb
index 9509cac6c74..e576fc1d323 100644
--- a/test/thread/test_sync.rb
+++ b/test/thread/test_sync.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'sync'
require 'timeout'
diff --git a/test/uri/test_common.rb b/test/uri/test_common.rb
index 562041535ec..4a7300fce71 100644
--- a/test/uri/test_common.rb
+++ b/test/uri/test_common.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'uri'
diff --git a/test/uri/test_ftp.rb b/test/uri/test_ftp.rb
index cc6843e60f2..0eec984db8a 100644
--- a/test/uri/test_ftp.rb
+++ b/test/uri/test_ftp.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'uri/ftp'
diff --git a/test/uri/test_generic.rb b/test/uri/test_generic.rb
index 941d8ffa028..eda6497da27 100644
--- a/test/uri/test_generic.rb
+++ b/test/uri/test_generic.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'uri'
diff --git a/test/uri/test_http.rb b/test/uri/test_http.rb
index 5d04e8cc6de..11259886024 100644
--- a/test/uri/test_http.rb
+++ b/test/uri/test_http.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'uri/http'
diff --git a/test/uri/test_ldap.rb b/test/uri/test_ldap.rb
index a4cdbff2758..adad4454b59 100644
--- a/test/uri/test_ldap.rb
+++ b/test/uri/test_ldap.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'uri/ldap'
diff --git a/test/uri/test_mailto.rb b/test/uri/test_mailto.rb
index 9001835d285..4e3b0425fa6 100644
--- a/test/uri/test_mailto.rb
+++ b/test/uri/test_mailto.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'uri/mailto'
diff --git a/test/uri/test_parser.rb b/test/uri/test_parser.rb
index 188b4f858c4..757ac86c746 100644
--- a/test/uri/test_parser.rb
+++ b/test/uri/test_parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'uri'
diff --git a/test/webrick/test_cgi.rb b/test/webrick/test_cgi.rb
index b9d066175f6..090286840b1 100644
--- a/test/webrick/test_cgi.rb
+++ b/test/webrick/test_cgi.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require_relative "utils"
require "webrick"
require "test/unit"
diff --git a/test/webrick/test_cookie.rb b/test/webrick/test_cookie.rb
index 1652f39ee05..ebbc5939dcc 100644
--- a/test/webrick/test_cookie.rb
+++ b/test/webrick/test_cookie.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "webrick/cookie"
diff --git a/test/webrick/test_do_not_reverse_lookup.rb b/test/webrick/test_do_not_reverse_lookup.rb
index 57f3b1d3efb..efcb5a92990 100644
--- a/test/webrick/test_do_not_reverse_lookup.rb
+++ b/test/webrick/test_do_not_reverse_lookup.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "webrick"
require_relative "utils"
diff --git a/test/webrick/test_filehandler.rb b/test/webrick/test_filehandler.rb
index 38b43d75fbd..663b237a82f 100644
--- a/test/webrick/test_filehandler.rb
+++ b/test/webrick/test_filehandler.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require_relative "utils.rb"
require "webrick"
diff --git a/test/webrick/test_htmlutils.rb b/test/webrick/test_htmlutils.rb
index 1fe49ee226d..ae1b8efa954 100644
--- a/test/webrick/test_htmlutils.rb
+++ b/test/webrick/test_htmlutils.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "webrick/htmlutils"
diff --git a/test/webrick/test_httpauth.rb b/test/webrick/test_httpauth.rb
index 27c37f36770..4376b91842c 100644
--- a/test/webrick/test_httpauth.rb
+++ b/test/webrick/test_httpauth.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "net/http"
require "tempfile"
diff --git a/test/webrick/test_httpproxy.rb b/test/webrick/test_httpproxy.rb
index 501bb4cbe50..6837f0c7385 100644
--- a/test/webrick/test_httpproxy.rb
+++ b/test/webrick/test_httpproxy.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "net/http"
require "webrick"
diff --git a/test/webrick/test_httprequest.rb b/test/webrick/test_httprequest.rb
index 3a7e67579f3..45d26f86999 100644
--- a/test/webrick/test_httprequest.rb
+++ b/test/webrick/test_httprequest.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "webrick"
require "stringio"
require "test/unit"
diff --git a/test/webrick/test_httpresponse.rb b/test/webrick/test_httpresponse.rb
index c916ed57c25..b3f06cd4694 100644
--- a/test/webrick/test_httpresponse.rb
+++ b/test/webrick/test_httpresponse.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "webrick"
require "minitest/autorun"
require "stringio"
diff --git a/test/webrick/test_httpserver.rb b/test/webrick/test_httpserver.rb
index 933aa0e02ed..e718738fc17 100644
--- a/test/webrick/test_httpserver.rb
+++ b/test/webrick/test_httpserver.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "net/http"
require "webrick"
diff --git a/test/webrick/test_httputils.rb b/test/webrick/test_httputils.rb
index 2753cbe6c90..00f297bd09e 100644
--- a/test/webrick/test_httputils.rb
+++ b/test/webrick/test_httputils.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "webrick/httputils"
diff --git a/test/webrick/test_httpversion.rb b/test/webrick/test_httpversion.rb
index 81a871a226a..e50ee179710 100644
--- a/test/webrick/test_httpversion.rb
+++ b/test/webrick/test_httpversion.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "webrick/httpversion"
diff --git a/test/webrick/test_server.rb b/test/webrick/test_server.rb
index 1a720361cc5..4d539d0368f 100644
--- a/test/webrick/test_server.rb
+++ b/test/webrick/test_server.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "tempfile"
require "webrick"
diff --git a/test/webrick/test_utils.rb b/test/webrick/test_utils.rb
index fc68124e441..23996de5d20 100644
--- a/test/webrick/test_utils.rb
+++ b/test/webrick/test_utils.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "test/unit"
require "webrick/utils"
diff --git a/test/webrick/utils.rb b/test/webrick/utils.rb
index 71559a56284..ce667df3557 100644
--- a/test/webrick/utils.rb
+++ b/test/webrick/utils.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "webrick"
begin
require "webrick/https"
diff --git a/test/win32ole/err_in_callback.rb b/test/win32ole/err_in_callback.rb
index fabb7bef0ef..aa6c9c7e3a5 100644
--- a/test/win32ole/err_in_callback.rb
+++ b/test/win32ole/err_in_callback.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'win32ole'
db = WIN32OLE.new('ADODB.Connection')
db.connectionString = "Driver={Microsoft Text Driver (*.txt; *.csv)};DefaultDir=.;"
diff --git a/test/win32ole/test_err_in_callback.rb b/test/win32ole/test_err_in_callback.rb
index cae6d493cbe..2c2b4a61a17 100644
--- a/test/win32ole/test_err_in_callback.rb
+++ b/test/win32ole/test_err_in_callback.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# test Win32OLE avoids cfp consistency error when the exception raised
# in WIN32OLE_EVENT handler block. [ruby-dev:35450]
diff --git a/test/win32ole/test_folderitem2_invokeverb.rb b/test/win32ole/test_folderitem2_invokeverb.rb
index c5ec88c2182..e11503ca2aa 100644
--- a/test/win32ole/test_folderitem2_invokeverb.rb
+++ b/test/win32ole/test_folderitem2_invokeverb.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# This script check that Win32OLE can execute InvokeVerb method of FolderItem2.
#
diff --git a/test/win32ole/test_nil2vtempty.rb b/test/win32ole/test_nil2vtempty.rb
index 8508ecdf971..49757d61b39 100644
--- a/test/win32ole/test_nil2vtempty.rb
+++ b/test/win32ole/test_nil2vtempty.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# This is test script to check that WIN32OLE should convert nil to VT_EMPTY in second try.
# [ruby-talk:137054]
begin
diff --git a/test/win32ole/test_ole_methods.rb b/test/win32ole/test_ole_methods.rb
index 869828d22fc..cb903566b9f 100644
--- a/test/win32ole/test_ole_methods.rb
+++ b/test/win32ole/test_ole_methods.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# This is test for [ruby-talk:196897]
#
diff --git a/test/win32ole/test_propertyputref.rb b/test/win32ole/test_propertyputref.rb
index 24459afe9bc..93edb508351 100644
--- a/test/win32ole/test_propertyputref.rb
+++ b/test/win32ole/test_propertyputref.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
begin
require 'win32ole'
diff --git a/test/win32ole/test_thread.rb b/test/win32ole/test_thread.rb
index 56a63579322..f1cdfe32b0f 100644
--- a/test/win32ole/test_thread.rb
+++ b/test/win32ole/test_thread.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'win32ole'
rescue LoadError
diff --git a/test/win32ole/test_win32ole.rb b/test/win32ole/test_win32ole.rb
index 6cf2b3ce3f6..c095e6d7ce8 100644
--- a/test/win32ole/test_win32ole.rb
+++ b/test/win32ole/test_win32ole.rb
@@ -1,4 +1,5 @@
# coding: us-ascii
+# frozen_string_literal: false
begin
require 'win32ole'
diff --git a/test/win32ole/test_win32ole_event.rb b/test/win32ole/test_win32ole_event.rb
index f91f0a10c55..02bbeee3210 100644
--- a/test/win32ole/test_win32ole_event.rb
+++ b/test/win32ole/test_win32ole_event.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'win32ole'
rescue LoadError
diff --git a/test/win32ole/test_win32ole_method.rb b/test/win32ole/test_win32ole_method.rb
index 2a4e3d08966..7fb43fd5426 100644
--- a/test/win32ole/test_win32ole_method.rb
+++ b/test/win32ole/test_win32ole_method.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'win32ole'
rescue LoadError
diff --git a/test/win32ole/test_win32ole_param.rb b/test/win32ole/test_win32ole_param.rb
index 1a4eeff3010..4f8104b1d10 100644
--- a/test/win32ole/test_win32ole_param.rb
+++ b/test/win32ole/test_win32ole_param.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'win32ole'
rescue LoadError
diff --git a/test/win32ole/test_win32ole_record.rb b/test/win32ole/test_win32ole_record.rb
index e32a9e2a954..654c747711c 100644
--- a/test/win32ole/test_win32ole_record.rb
+++ b/test/win32ole/test_win32ole_record.rb
@@ -1,4 +1,5 @@
# coding: us-ascii
+# frozen_string_literal: false
begin
require 'win32ole'
diff --git a/test/win32ole/test_win32ole_type.rb b/test/win32ole/test_win32ole_type.rb
index 5422352f044..ce11e0235ff 100644
--- a/test/win32ole/test_win32ole_type.rb
+++ b/test/win32ole/test_win32ole_type.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'win32ole'
rescue LoadError
diff --git a/test/win32ole/test_win32ole_typelib.rb b/test/win32ole/test_win32ole_typelib.rb
index a548bc15347..321c019e53e 100644
--- a/test/win32ole/test_win32ole_typelib.rb
+++ b/test/win32ole/test_win32ole_typelib.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'win32ole'
rescue LoadError
diff --git a/test/win32ole/test_win32ole_variable.rb b/test/win32ole/test_win32ole_variable.rb
index 5fdcb07e4c3..826029e0a8d 100644
--- a/test/win32ole/test_win32ole_variable.rb
+++ b/test/win32ole/test_win32ole_variable.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'win32ole'
rescue LoadError
diff --git a/test/win32ole/test_win32ole_variant.rb b/test/win32ole/test_win32ole_variant.rb
index 27ede7d7419..0d27aae5ed6 100644
--- a/test/win32ole/test_win32ole_variant.rb
+++ b/test/win32ole/test_win32ole_variant.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'win32ole'
rescue LoadError
diff --git a/test/win32ole/test_win32ole_variant_m.rb b/test/win32ole/test_win32ole_variant_m.rb
index b3e48c20f08..25ad56cc21f 100644
--- a/test/win32ole/test_win32ole_variant_m.rb
+++ b/test/win32ole/test_win32ole_variant_m.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'win32ole'
rescue LoadError
diff --git a/test/win32ole/test_win32ole_variant_outarg.rb b/test/win32ole/test_win32ole_variant_outarg.rb
index ffc8e067bdc..aa5793b84cb 100644
--- a/test/win32ole/test_win32ole_variant_outarg.rb
+++ b/test/win32ole/test_win32ole_variant_outarg.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'win32ole'
rescue LoadError
diff --git a/test/win32ole/test_word.rb b/test/win32ole/test_word.rb
index a67b80bb766..03b0bcbddee 100644
--- a/test/win32ole/test_word.rb
+++ b/test/win32ole/test_word.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# This is test for [ruby-Bugs#3237]
#
diff --git a/test/xmlrpc/test_client.rb b/test/xmlrpc/test_client.rb
index b189728bc6c..5a74c5265b2 100644
--- a/test/xmlrpc/test_client.rb
+++ b/test/xmlrpc/test_client.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'xmlrpc/client'
require 'net/http'
diff --git a/test/xmlrpc/test_cookie.rb b/test/xmlrpc/test_cookie.rb
index cfcfe4c3f0b..32eedca3678 100644
--- a/test/xmlrpc/test_cookie.rb
+++ b/test/xmlrpc/test_cookie.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'time'
require 'webrick'
diff --git a/test/xmlrpc/test_datetime.rb b/test/xmlrpc/test_datetime.rb
index d6bb95dfcc2..6a46e15f842 100644
--- a/test/xmlrpc/test_datetime.rb
+++ b/test/xmlrpc/test_datetime.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "xmlrpc/datetime"
diff --git a/test/xmlrpc/test_features.rb b/test/xmlrpc/test_features.rb
index 48bb0d4c215..ea97ab8a09d 100644
--- a/test/xmlrpc/test_features.rb
+++ b/test/xmlrpc/test_features.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "xmlrpc/create"
require "xmlrpc/parser"
diff --git a/test/xmlrpc/test_marshal.rb b/test/xmlrpc/test_marshal.rb
index 34ddfa9d822..251f9f6f290 100644
--- a/test/xmlrpc/test_marshal.rb
+++ b/test/xmlrpc/test_marshal.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require "xmlrpc/marshal"
diff --git a/test/xmlrpc/test_parser.rb b/test/xmlrpc/test_parser.rb
index 5591645cd45..880044284c0 100644
--- a/test/xmlrpc/test_parser.rb
+++ b/test/xmlrpc/test_parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'xmlrpc/datetime'
require "xmlrpc/parser"
diff --git a/test/xmlrpc/test_webrick_server.rb b/test/xmlrpc/test_webrick_server.rb
index bc102390c36..268a01382d5 100644
--- a/test/xmlrpc/test_webrick_server.rb
+++ b/test/xmlrpc/test_webrick_server.rb
@@ -1,4 +1,5 @@
# coding: utf-8
+# frozen_string_literal: false
require 'test/unit'
require 'webrick'
diff --git a/test/xmlrpc/webrick_testing.rb b/test/xmlrpc/webrick_testing.rb
index 37c0b69a740..ff287f70249 100644
--- a/test/xmlrpc/webrick_testing.rb
+++ b/test/xmlrpc/webrick_testing.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'timeout'
module TestXMLRPC
diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb
index b22e04eb621..37d4b69b0a2 100644
--- a/test/zlib/test_zlib.rb
+++ b/test/zlib/test_zlib.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
require 'stringio'
require 'tempfile'