mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 17:14:01 +02:00
Fixed misspellings
Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
This commit is contained in:
parent
2898367b3a
commit
db16629008
45 changed files with 79 additions and 79 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue