aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 09:19:39 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 09:32:42 +0900
commitdb166290088fb7d39d01f68b9860253893d4f1a7 (patch)
tree68c1b2c3e7ff00ed5cd6a214e6644a28dca22261 /test
parent2898367b3a1de00ca78067cc17dd4d1f8df37778 (diff)
downloadruby-db166290088fb7d39d01f68b9860253893d4f1a7.tar.gz
Fixed misspellings
Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
Diffstat (limited to 'test')
-rw-r--r--test/-ext-/popen_deadlock/test_popen_deadlock.rb2
-rw-r--r--test/ruby/sentence.rb2
-rw-r--r--test/ruby/test_assignment.rb2
-rw-r--r--test/ruby/test_struct.rb2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/-ext-/popen_deadlock/test_popen_deadlock.rb b/test/-ext-/popen_deadlock/test_popen_deadlock.rb
index 97892e5008..e6ba5e7c1a 100644
--- a/test/-ext-/popen_deadlock/test_popen_deadlock.rb
+++ b/test/-ext-/popen_deadlock/test_popen_deadlock.rb
@@ -26,7 +26,7 @@ class TestPopenDeadlock < Test::Unit::TestCase
end
private :assert_popen_without_deadlock
- # 10 test methods are defined for showing progess reports
+ # 10 test methods are defined for showing progress reports
10.times do |i|
define_method("test_popen_without_deadlock_#{i}") {
assert_popen_without_deadlock
diff --git a/test/ruby/sentence.rb b/test/ruby/sentence.rb
index 28fb5d1cf8..9bfd7c7599 100644
--- a/test/ruby/sentence.rb
+++ b/test/ruby/sentence.rb
@@ -353,7 +353,7 @@ class Sentence
# * No rule derives to empty sequence
# * Underivable rule simplified
# * No channel rule
- # * Symbols which has zero or one choices are not appered in rhs.
+ # * Symbols which has zero or one choices are not appeared in rhs.
#
# Note that the rules which can derive empty and non-empty
# sequences are modified to derive only non-empty sequences.
diff --git a/test/ruby/test_assignment.rb b/test/ruby/test_assignment.rb
index bf6602ab13..5a6ec97e67 100644
--- a/test/ruby/test_assignment.rb
+++ b/test/ruby/test_assignment.rb
@@ -456,7 +456,7 @@ class TestAssignment < Test::Unit::TestCase
assert(defined?(a))
assert_nil(a)
- # multiple asignment
+ # multiple assignment
a, b = 1, 2
assert_equal 1, a
assert_equal 2, b
diff --git a/test/ruby/test_struct.rb b/test/ruby/test_struct.rb
index 884fbe00ed..9438160a6f 100644
--- a/test/ruby/test_struct.rb
+++ b/test/ruby/test_struct.rb
@@ -113,7 +113,7 @@ module TestStruct
assert_equal @Struct::KeywordInitTrue.new(a: 1, b: 2).values, @Struct::KeywordInitFalse.new(1, 2).values
assert_equal "#{@Struct}::KeywordInitFalse", @Struct::KeywordInitFalse.inspect
assert_equal "#{@Struct}::KeywordInitTrue(keyword_init: true)", @Struct::KeywordInitTrue.inspect
- # eval is neede to prevent the warning duplication filter
+ # eval is needed to prevent the warning duplication filter
k = eval("Class.new(@Struct::KeywordInitFalse) {def initialize(**) end}")
assert_warn(/The last argument is used as the keyword parameter/) {k.new(a: 1, b: 2)}
k = Class.new(@Struct::KeywordInitTrue) {def initialize(**) end}