Project

General

Profile

Actions

Bug #3933

closed

TestIO_M17N#test_ungetc_intがエラーになる

Added by shugo (Shugo Maeda) about 14 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3dev (2010-10-12 trunk 29450) [i686-linux]
Backport:
[ruby-dev:42366]

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

Actions

Also available in: Atom PDF

Like0
Like0