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

* lib/test/unit/autorunner.rb (keyword_display): sort keywords.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2003-11-17 00:41:40 +00:00
parent 7f58e0ba4f
commit 2d3a489f6d
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,4 @@
Mon Nov 17 09:23:38 2003 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
Mon Nov 17 09:41:38 2003 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
* lib/test/unit/ui/tk/testrunner.rb,
lib/test/unit/ui/gtk/testrunner.rb:
@ -6,6 +6,8 @@ Mon Nov 17 09:23:38 2003 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
* lib/test/unit/ui/gtk2/testrunner.rb: imported from rough.
* lib/test/unit/autorunner.rb (keyword_display): sort keywords.
Sun Nov 16 18:10:57 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_eval): iterator should return value from next inside

View file

@ -174,7 +174,7 @@ module Test
end
def keyword_display(array)
array.collect{|e| e.to_s.sub(/^(.)(.+)$/, '\\1[\\2]')}.join(", ")
array.collect{|e| e.to_s.sub(/^(.)([A-Za-z]+)(?=\w*$)/, '\\1[\\2]')}.sort.join(", ")
end
def run