mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_io_m17n.rb: use __FILE__ instead of /dev/null.
[ruby-dev:36327] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b3d772643e
commit
87fba4c425
2 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Sep 17 01:56:27 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/ruby/test_io_m17n.rb: use __FILE__ instead of /dev/null.
|
||||
[ruby-dev:36327]
|
||||
|
||||
Wed Sep 17 01:33:11 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* include/ruby/oniguruma.h (OnigEncodingTypeST): add precise_ret
|
||||
|
|
|
@ -809,28 +809,28 @@ EOT
|
|||
|
||||
def test_set_encoding_binmode
|
||||
assert_raise(ArgumentError) {
|
||||
open("/dev/null", "rt") {|f|
|
||||
open(__FILE__, "rt") {|f|
|
||||
f.set_encoding("iso-2022-jp")
|
||||
}
|
||||
}
|
||||
assert_raise(ArgumentError) {
|
||||
open("/dev/null", "r") {|f|
|
||||
open(__FILE__, "r") {|f|
|
||||
f.set_encoding("iso-2022-jp")
|
||||
}
|
||||
}
|
||||
assert_nothing_raised {
|
||||
open("/dev/null", "rb") {|f|
|
||||
open(__FILE__, "rb") {|f|
|
||||
f.set_encoding("iso-2022-jp")
|
||||
}
|
||||
}
|
||||
assert_nothing_raised {
|
||||
open("/dev/null", "r") {|f|
|
||||
open(__FILE__, "r") {|f|
|
||||
f.binmode
|
||||
f.set_encoding("iso-2022-jp")
|
||||
}
|
||||
}
|
||||
assert_nothing_raised {
|
||||
open("/dev/null", "rt") {|f|
|
||||
open(__FILE__, "rt") {|f|
|
||||
f.binmode
|
||||
f.set_encoding("iso-2022-jp")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue