2007-08-29 07:48:19 +04:00
|
|
|
#
|
|
|
|
# This test file concludes tests which point out known bugs.
|
|
|
|
# So all tests will cause failure.
|
|
|
|
#
|
2007-09-27 02:40:44 +04:00
|
|
|
|
|
|
|
assert_finish 1, %q{
|
|
|
|
r, w = IO.pipe
|
2007-09-27 03:24:08 +04:00
|
|
|
t1 = Thread.new { r.sysread(1) }
|
|
|
|
t2 = Thread.new { r.sysread(1) }
|
2007-09-27 02:40:44 +04:00
|
|
|
sleep 0.1
|
|
|
|
w.write "a"
|
|
|
|
sleep 0.1
|
|
|
|
w.write "a"
|
|
|
|
}, '[ruby-dev:31866]'
|
2007-09-27 13:51:24 +04:00
|
|
|
|
2007-09-29 07:32:57 +04:00
|
|
|
assert_normal_exit %q{
|
2007-09-29 08:52:43 +04:00
|
|
|
Marshal.load(Marshal.dump({"k"=>"v"}), lambda {|v| })
|
2007-09-29 07:32:57 +04:00
|
|
|
}
|
2007-09-30 06:23:58 +04:00
|
|
|
|
2007-10-05 11:43:34 +04:00
|
|
|
assert_not_match /method_missing/, %q{
|
|
|
|
STDERR.reopen(STDOUT)
|
|
|
|
variable_or_mehtod_not_exist
|
|
|
|
}
|
2007-10-09 10:41:16 +04:00
|
|
|
|
|
|
|
assert_normal_exit %q{
|
|
|
|
ary = (1..10).to_a
|
|
|
|
ary.permutation(2) {|x|
|
|
|
|
if x == [1,2]
|
|
|
|
ObjectSpace.each_object(String) {|s|
|
|
|
|
s.clear if s.length == 40 || s.length == 80
|
|
|
|
}
|
|
|
|
end
|
|
|
|
}
|
|
|
|
}, '[ruby-dev:31982]'
|
|
|
|
|
2007-10-09 12:15:37 +04:00
|
|
|
assert_normal_exit %q{
|
|
|
|
ary = (1..100).to_a
|
|
|
|
ary.permutation(2) {|x|
|
|
|
|
if x == [1,2]
|
|
|
|
ObjectSpace.each_object(Array) {|o| o.clear if o == ary && o.object_id != ary.object_id }
|
|
|
|
end
|
|
|
|
}
|
|
|
|
}, '[ruby-dev:31985]'
|
|
|
|
|
2007-10-16 13:47:31 +04:00
|
|
|
assert_normal_exit %q{
|
|
|
|
Regexp.union("a", "a")
|
|
|
|
}
|
2007-10-16 15:06:27 +04:00
|
|
|
|
|
|
|
assert_equal 'ok', %q{
|
|
|
|
begin
|
|
|
|
Regexp.union(
|
|
|
|
"a",
|
|
|
|
Regexp.new("\x80".force_encoding("euc-jp")),
|
|
|
|
Regexp.new("\x80".force_encoding("utf-8")))
|
|
|
|
:ng
|
|
|
|
rescue ArgumentError
|
|
|
|
:ok
|
|
|
|
end
|
|
|
|
}
|
2007-10-22 07:40:41 +04:00
|
|
|
|
|
|
|
assert_equal 'ok', %q{
|
|
|
|
0**-1 == 0 ? :ng : :ok
|
|
|
|
}
|
2007-11-04 04:53:29 +03:00
|
|
|
|
|
|
|
assert_equal '(?-mix:\000)', %q{
|
|
|
|
Regexp.new("\0")
|
|
|
|
}
|