        if !s2.valid_encoding?
          assert_raise(RegexpError) { Regexp.new(Regexp.escape(s2)) }
          next
-@@ -1461,7 +1482,7 @@ def test_str_sub
+@@ -1467,7 +1488,7 @@ def test_str_sub
    end
  
    def test_str_sub!

       if !s1.ascii_only? && !s2.ascii_only? && s1.encoding != s2.encoding
         assert_raise(Encoding::CompatibilityError) { s1.include?(s2) }
         assert_raise(Encoding::CompatibilityError) { s1.index(s2) }
@@ -1058,7 +1080,7 @@ def test_str_oct
   end
 
   def test_str_replace

Added frozen_string_literal: true
Changed some loops to quicken code up and less GC issues
diff --git a/test/ruby/test_m17n_comb.rb b/test/ruby/test_m17n_comb.rb
index 49141790f0..537872bee2 100644
--- a/test/ruby/test_m17n_comb.rb
+++ b/test/ruby/test_m17n_comb.rb
@@ -1,4 +1,4 @@
