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

* test/etc/test_etc.rb (test_passwd): age field may be string under

some environments.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2008-07-29 12:36:28 +00:00
parent 7e5be7e131
commit 8da30b8928
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue Jul 29 21:35:59 2008 Yusuke Endoh <mame@tsg.ne.jp>
* 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@ruby-lang.org>
* dir.c (char_casecmp): fix: return 0 if either of characters is NUL.

View file

@ -18,7 +18,7 @@ class TestEtc < Test::Unit::TestCase
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)