2007-08-28 23:48:19 -04:00
|
|
|
#
|
|
|
|
# This test file concludes tests which point out known bugs.
|
|
|
|
# So all tests will cause failure.
|
|
|
|
#
|
2007-09-26 18:40:44 -04:00
|
|
|
|
|
|
|
assert_finish 1, %q{
|
|
|
|
r, w = IO.pipe
|
2007-09-26 19:24:08 -04:00
|
|
|
t1 = Thread.new { r.sysread(1) }
|
|
|
|
t2 = Thread.new { r.sysread(1) }
|
2007-09-26 18:40:44 -04:00
|
|
|
sleep 0.1
|
|
|
|
w.write "a"
|
|
|
|
sleep 0.1
|
|
|
|
w.write "a"
|
|
|
|
}, '[ruby-dev:31866]'
|
2007-09-27 05:51:24 -04:00
|
|
|
|
2007-09-28 23:32:57 -04:00
|
|
|
assert_normal_exit %q{
|
2007-09-29 00:52:43 -04:00
|
|
|
Marshal.load(Marshal.dump({"k"=>"v"}), lambda {|v| })
|
2007-09-28 23:32:57 -04:00
|
|
|
}
|
2007-09-29 22:23:58 -04:00
|
|
|
|
2007-10-05 03:43:34 -04:00
|
|
|
assert_not_match /method_missing/, %q{
|
|
|
|
STDERR.reopen(STDOUT)
|
|
|
|
variable_or_mehtod_not_exist
|
|
|
|
}
|
2007-10-09 02: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 04: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 05:47:31 -04:00
|
|
|
assert_normal_exit %q{
|
|
|
|
Regexp.union("a", "a")
|
|
|
|
}
|
2007-10-16 07: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-21 23:40:41 -04:00
|
|
|
|
|
|
|
assert_equal 'ok', %q{
|
|
|
|
0**-1 == 0 ? :ng : :ok
|
|
|
|
}
|
2007-11-03 21:53:29 -04:00
|
|
|
|
|
|
|
assert_equal '(?-mix:\000)', %q{
|
|
|
|
Regexp.new("\0")
|
|
|
|
}
|