Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 50 lines (46 sloc) 0.526 kb
c95e386 start collecting #caller tests
Laurent Sansonetti authored
1 assert "6", %{
2 def f
3 self.inspect
4 puts caller.join('').scan(/(\\d+):/)
5 end
6 f
7 }
8
9 assert "7\n12", %{
10 class A
11 def f
12 puts caller.join('').scan(/(\\d+):/)
13 end
14 def g
15 f
16 self.inspect
17 end
18 end
19 a = A.new
20 a.g
21 }
22
23 assert "10\n14", %{
24 class A # line 1
25 def f
26 caller.join('').scan(/(\\d+):/)
27 end
28 def g
29 1
30 self.inspect
31 2
32 f
33 end
34 end
35 a = A.new
36 puts a.g
37 }
84cd1b7 add reduction for bug #961
Laurent Sansonetti authored
38
39 assert "9\n6\n8", %{
40 def foo
41 puts caller.join('').scan(/(\\d+):/)
42 end
43 def bar
44 yield
45 end
46 bar do
47 foo
48 end
49 }
Something went wrong with that request. Please try again.