ruby-changes:6742
From: mame <ko1@a...>
Date: Tue, 29 Jul 2008 21:37:56 +0900 (JST)
Subject: [ruby-changes:6742] Ruby:r18258 (trunk): * test/etc/test_etc.rb (test_passwd): age field may be string under
mame 2008-07-29 21:36:28 +0900 (Tue, 29 Jul 2008) New Revision: 18258 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18258 Log: * test/etc/test_etc.rb (test_passwd): age field may be string under some environments. Modified files: trunk/ChangeLog trunk/test/etc/test_etc.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 18257) +++ ChangeLog (revision 18258) @@ -1,3 +1,8 @@ +Tue Jul 29 21:35:59 2008 Yusuke Endoh <mame@t...> + + * test/etc/test_etc.rb (test_passwd): age field may be string under + some environments. + Tue Jul 29 17:54:35 2008 NARUSE, Yui <naruse@r...> * dir.c (char_casecmp): fix: return 0 if either of characters is NUL. Index: test/etc/test_etc.rb =================================================================== --- test/etc/test_etc.rb (revision 18257) +++ test/etc/test_etc.rb (revision 18258) @@ -18,7 +18,7 @@ assert_instance_of(String, s.shell) assert_kind_of(Integer, s.change) if s.respond_to?(:change) assert_kind_of(Integer, s.quota) if s.respond_to?(:quota) - assert_kind_of(Integer, s.age) if s.respond_to?(:age) + assert(s.age.is_a?(Integer) || s.age.is_a?(String)) if s.respond_to?(:age) assert_instance_of(String, s.uclass) if s.respond_to?(:uclass) assert_instance_of(String, s.comment) if s.respond_to?(:comment) assert_kind_of(Integer, s.expire) if s.respond_to?(:expire) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/