From 2d3a489f6dacd5c68ba1eeb99499f7c99ffe5a3d Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 17 Nov 2003 00:41:40 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 +++- lib/test/unit/autorunner.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6bca979107..63d3cb00e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,4 @@ -Mon Nov 17 09:23:38 2003 Nobuyoshi Nakada +Mon Nov 17 09:41:38 2003 Nobuyoshi Nakada * 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 * 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 * eval.c (rb_eval): iterator should return value from next inside diff --git a/lib/test/unit/autorunner.rb b/lib/test/unit/autorunner.rb index 5dabd7e3c0..fb010d52e2 100644 --- a/lib/test/unit/autorunner.rb +++ b/lib/test/unit/autorunner.rb @@ -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