1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix typos

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2012-03-05 09:29:24 +00:00
parent eb1eee03ca
commit bc4ef96c9e
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Mon Mar 5 18:28:35 2012 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/ruby/test_regexp.rb (TestRegexp#test_source): fix typo.
* test/ruby/test_regexp.rb (TestRegexp#test_equal): ditto.
Mon Mar 5 17:11:44 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/syck/lib/syck/rubytypes.rb (Exception.yaml_new): fix bug

View file

@ -155,7 +155,7 @@ class TestRegexp < Test::Unit::TestCase
end
def test_source
bug5484 = ']ruby-core:40364]'
bug5484 = '[ruby-core:40364]'
assert_equal('', //.source)
assert_equal('\:', /\:/.source, bug5484)
assert_equal(':', %r:\::.source, bug5484)
@ -372,7 +372,7 @@ class TestRegexp < Test::Unit::TestCase
end
def test_equal
bug5484 = ']ruby-core:40364]'
bug5484 = '[ruby-core:40364]'
assert_equal(/abc/, /abc/)
assert_not_equal(/abc/, /abc/m)
assert_not_equal(/abc/, /abd/)