From 2d3724e05833f79e19f729195fdf0f01f081c5a6 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 20 Aug 2007 19:00:27 +0000 Subject: [PATCH] * test_enumerator.rb (enum_test): fix to return sorted array (for Hash test). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/ruby/test_enumerator.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 267c74224a..7f8aabcc7c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 21 03:59:32 2007 Koichi Sasada + + * test_enumerator.rb (enum_test): fix to return sorted + array (for Hash test). + Tue Aug 21 03:55:20 2007 Koichi Sasada * enumerator.c (next_i): fix to return with Fiber#yield at diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb index 6ff8f82019..60864258c3 100644 --- a/test/ruby/test_enumerator.rb +++ b/test/ruby/test_enumerator.rb @@ -5,7 +5,7 @@ class TestEnumerator < Test::Unit::TestCase i = 0 obj.map{|e| [i+=1, e] - } + }.sort end def test_iterators