summaryrefslogtreecommitdiff
path: root/test/ripper
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/ripper
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/ripper')
-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
6 files changed, 7 insertions, 1 deletions
diff --git a/test/ripper/dummyparser.rb b/test/ripper/dummyparser.rb
index 35c08b5..3c196d9 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 5541a09..7b5fa1d 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 005a5d8..0f9d38f 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 1544e56..e0b65a0 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 45c1673..ab52392 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 557ae9b..46fb7f2 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'