mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c: fix indent style. [fix GH-977]
* test/ruby/test_string.rb: indent. [fix GH-975] [ci skip] These patches are contributed from @yui-knk git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
26cd2da784
commit
5fdee2f829
3 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
Fri Oct 23 16:03:26 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||
|
||||
* file.c: fix indent style. [fix GH-977]
|
||||
* test/ruby/test_string.rb: indent. [fix GH-975]
|
||||
[ci skip] These patches are contributed from @yui-knk
|
||||
|
||||
Fri Oct 23 15:46:09 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||
|
||||
* string.c: Added method signature to include hash. It's inconsistency
|
||||
|
|
2
file.c
2
file.c
|
@ -4259,7 +4259,7 @@ ruby_enc_find_extname(const char *name, long *len, rb_encoding *enc)
|
|||
* File.extname("test.rb") #=> ".rb"
|
||||
* File.extname("a/b/d/test.rb") #=> ".rb"
|
||||
* File.extname(".a/b/d/test.rb") #=> ".rb"
|
||||
* File.extname("foo.") #=> ""
|
||||
* File.extname("foo.") #=> ""
|
||||
* File.extname("test") #=> ""
|
||||
* File.extname(".profile") #=> ""
|
||||
* File.extname(".profile.sh") #=> ".sh"
|
||||
|
|
|
@ -281,10 +281,10 @@ class TestString < Test::Unit::TestCase
|
|||
def casetest(a, b, rev=false)
|
||||
msg = proc {"#{a} should#{' not' if rev} match #{b}"}
|
||||
case a
|
||||
when b
|
||||
assert(!rev, msg)
|
||||
else
|
||||
assert(rev, msg)
|
||||
when b
|
||||
assert(!rev, msg)
|
||||
else
|
||||
assert(rev, msg)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue