mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_io_m17n.rb: fix tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
75e4572768
commit
319bcad626
1 changed files with 4 additions and 4 deletions
|
@ -87,7 +87,7 @@ EOT
|
||||||
def test_open_w
|
def test_open_w
|
||||||
with_tmpdir {
|
with_tmpdir {
|
||||||
open("tmp", "w") {|f|
|
open("tmp", "w") {|f|
|
||||||
assert_equal(Encoding.default_external, f.external_encoding)
|
assert_equal(nil, f.external_encoding)
|
||||||
assert_equal(nil, f.internal_encoding)
|
assert_equal(nil, f.internal_encoding)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ EOT
|
||||||
def test_open_wb
|
def test_open_wb
|
||||||
with_tmpdir {
|
with_tmpdir {
|
||||||
open("tmp", "wb") {|f|
|
open("tmp", "wb") {|f|
|
||||||
assert_equal(Encoding::ASCII_8BIT, f.external_encoding)
|
assert_equal(nil, f.external_encoding)
|
||||||
assert_equal(nil, f.internal_encoding)
|
assert_equal(nil, f.internal_encoding)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -135,12 +135,12 @@ EOT
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_stdout
|
def test_stdout
|
||||||
assert_equal(Encoding.default_external, STDOUT.external_encoding)
|
assert_equal(nil, STDOUT.external_encoding)
|
||||||
assert_equal(nil, STDOUT.internal_encoding)
|
assert_equal(nil, STDOUT.internal_encoding)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_stderr
|
def test_stderr
|
||||||
assert_equal(Encoding.default_external, STDERR.external_encoding)
|
assert_equal(nil, STDERR.external_encoding)
|
||||||
assert_equal(nil, STDERR.internal_encoding)
|
assert_equal(nil, STDERR.internal_encoding)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue