repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git]
/
bootstraptest
/
pending.rb
blob
744c0adac105189e0b4a36de1a67ee611ca6b08f
1
assert_equal 'A', %q{
2
class A
3
@@a = 'A'
4
def a=(x)
5
@@a = x
6
end
7
def a
8
@@a
9
end
10
end
11
12
B = A.dup
13
B.new.a = 'B'
14
A.new.a
15
}, '[ruby-core:17019]'
16
17
assert_equal 'ok', %q{
18
def m
19
lambda{
20
proc{
21
return :ng1
22
}
23
}.call.call
24
:ng2
25
end
26
27
begin
28
m()
29
rescue LocalJumpError
30
:ok
31
end
32
}
33
34
assert_normal_exit %q{
35
r = Range.allocate
36
def r.<=>(o) true end
37
r.instance_eval { initialize r, r }
38
r.inspect
39
}