Bug #3933

TestIO_M17N#test_ungetc_intがエラーになる

Added by Shugo Maeda almost 5 years ago. Updated over 4 years ago.

[ruby-dev:42366]
Status:Closed
Priority:Normal
Assignee:Yui NARUSE
ruby -v:ruby 1.9.3dev (2010-10-12 trunk 29450) [i686-linux] Backport:

Description

=begin
前田です。

手元の環境で、TestIO_M17N#test_ungetc_intがエラーになるようです。

$ ruby-trunk -v test/ruby/test_io_m17n.rb -n /ungetc_int/
ruby 1.9.3dev (2010-10-12 trunk 29450) [i686-linux]
test/ruby/test_io_m17n.rb:1451: warning: assigned but unused variable - un
Test run options: --seed 47369 --name "/ungetc_int/"

Loaded suite test/ruby/test_io_m17n
Started
E
Finished in 0.006128 seconds.

1) Error:
test_ungetc_int(TestIO_M17N):
TypeError: can't convert Bignum into String
test/ruby/test_io_m17n.rb:425:in ungetc'
test/ruby/test_io_m17n.rb:425:in
block (2 levels) in test_ungetc_int'
test/ruby/test_io_m17n.rb:424:in open'
test/ruby/test_io_m17n.rb:424:in
block in test_ungetc_int'
test/ruby/test_io_m17n.rb:17:in block (2 levels) in with_tmpdir'
test/ruby/test_io_m17n.rb:16:in
chdir'
test/ruby/test_io_m17n.rb:16:in `block in with_tmpdir'

1 tests, 0 assertions, 0 failures, 1 errors, 0 skips

Test run options: --seed 47369 --name "/ungetc_int/"

r29448を見ると、SIZEOF_LONG > SIZEOF_INTの時だけBignumの処理を追加している
ようなのですが、これはなぜでしょうか。
=end

History

#1 Updated by Yui NARUSE almost 5 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r29454.
Shugo, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF