diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-17 00:41:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-17 00:41:40 +0000 |
commit | 3602c6d258480096ad9b46cce20459a9af515ddf (patch) | |
tree | f1d8231fd9de3b80e941d028169e0c267d57956c /lib | |
parent | 5a627539e07f56c096ee0600a50b3f5e0fd0c417 (diff) | |
download | ruby-3602c6d258480096ad9b46cce20459a9af515ddf.tar.gz ruby-3602c6d258480096ad9b46cce20459a9af515ddf.tar.xz ruby-3602c6d258480096ad9b46cce20459a9af515ddf.zip |
* lib/test/unit/autorunner.rb (keyword_display): sort keywords.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/test/unit/autorunner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/unit/autorunner.rb b/lib/test/unit/autorunner.rb index 5dabd7e3c..fb010d52e 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 |