rcodetools 0.8.0.0 → 0.8.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -3
- data/bin/rct-complete +1 -1
- data/bin/rct-doc +1 -1
- data/bin/rct-meth-args +1 -1
- data/bin/xmpfilter +1 -1
- data/lib/rcodetools/xmpfilter.rb +2 -2
- data/rcodetools.elc +0 -0
- data/rcodetools.gif +0 -0
- data/rcodetools.sxmp +0 -0
- data/test/attic/test_run.rb +45 -0
- data/test/data/attic/add_markers-input.rb +2 -0
- data/test/data/attic/add_markers-output.rb +2 -0
- data/test/data/attic/bindings-input.rb +26 -0
- data/test/data/attic/bindings-output.rb +31 -0
- data/test/data/attic/completion-input.rb +1 -0
- data/test/data/attic/completion-output.rb +2 -0
- data/test/data/attic/completion_class_info-input.rb +1 -0
- data/test/data/attic/completion_class_info-output.rb +10 -0
- data/test/data/attic/completion_class_info_no_candidates-input.rb +1 -0
- data/test/data/attic/completion_class_info_no_candidates-output.rb +1 -0
- data/test/data/attic/completion_detect_rbtest-input.rb +7 -0
- data/test/data/attic/completion_detect_rbtest-output.rb +2 -0
- data/test/data/attic/completion_detect_rbtest2-input.rb +1 -0
- data/test/data/attic/completion_detect_rbtest2-output.rb +2 -0
- data/test/data/attic/completion_emacs-input.rb +1 -0
- data/test/data/attic/completion_emacs-output.rb +6 -0
- data/test/data/attic/completion_emacs_icicles-input.rb +1 -0
- data/test/data/attic/completion_emacs_icicles-output.rb +6 -0
- data/test/data/attic/completion_in_method-input.rb +3 -0
- data/test/data/attic/completion_in_method-output.rb +1 -0
- data/test/data/attic/completion_in_method-test.rb +6 -0
- data/test/data/attic/completion_rbtest-input.rb +7 -0
- data/test/data/attic/completion_rbtest-output.rb +2 -0
- data/test/data/attic/doc-input.rb +1 -0
- data/test/data/attic/doc-output.rb +1 -0
- data/test/data/attic/doc_detect_rbtest-input.rb +1 -0
- data/test/data/attic/doc_detect_rbtest-output.rb +1 -0
- data/test/data/attic/doc_detect_rbtest2-input.rb +7 -0
- data/test/data/attic/doc_detect_rbtest2-output.rb +1 -0
- data/test/data/attic/doc_rbtest-input.rb +7 -0
- data/test/data/attic/doc_rbtest-output.rb +1 -0
- data/test/data/attic/no_warnings-input.rb +3 -0
- data/test/data/attic/no_warnings-output.rb +4 -0
- data/test/data/attic/refe-input.rb +1 -0
- data/test/data/attic/refe-output.rb +1 -0
- data/test/data/attic/ri-input.rb +1 -0
- data/test/data/attic/ri-output.rb +1 -0
- data/test/data/attic/ri_emacs-input.rb +1 -0
- data/test/data/attic/ri_emacs-output.rb +1 -0
- data/test/data/attic/ri_vim-input.rb +1 -0
- data/test/data/attic/ri_vim-output.rb +1 -0
- data/test/data/attic/rspec-input.rb +48 -0
- data/test/data/attic/rspec-output.rb +52 -0
- data/test/data/attic/rspec_poetry-input.rb +48 -0
- data/test/data/attic/rspec_poetry-output.rb +52 -0
- data/test/data/attic/simple_annotation-input.rb +8 -0
- data/test/data/attic/simple_annotation-output.rb +8 -0
- data/test/data/attic/unit_test-input.rb +50 -0
- data/test/data/attic/unit_test-output.rb +52 -0
- data/test/data/attic/unit_test_detect_rbtest-input.rb +50 -0
- data/test/data/attic/unit_test_detect_rbtest-output.rb +52 -0
- data/test/data/attic/unit_test_detect_rbtest2-input.rb +6 -0
- data/test/data/attic/unit_test_detect_rbtest2-output.rb +6 -0
- data/test/data/attic/unit_test_poetry-input.rb +50 -0
- data/test/data/attic/unit_test_poetry-output.rb +52 -0
- data/test/data/attic/unit_test_rbtest-input.rb +6 -0
- data/test/data/attic/unit_test_rbtest-output.rb +6 -0
- data/test/data/rct-complete-TDC/completion_in_method__testmethod.taf +17 -0
- data/test/data/rct-complete-TDC/completion_in_method__testscript.taf +17 -0
- data/test/data/rct-complete-TDC/completion_in_method__wrong_testmethod.taf +17 -0
- data/test/data/rct-complete/completion.taf +9 -0
- data/test/data/rct-complete/completion_class_info.taf +9 -0
- data/test/data/rct-complete/completion_class_info_no_candidates.taf +8 -0
- data/test/data/rct-complete/completion_detect_rbtest.taf +15 -0
- data/test/data/rct-complete/completion_detect_rbtest2.taf +9 -0
- data/test/data/rct-complete/completion_emacs.taf +13 -0
- data/test/data/rct-complete/completion_emacs_icicles.taf +13 -0
- data/test/data/rct-complete/completion_rbtest.taf +15 -0
- data/test/data/rct-doc/doc.taf +8 -0
- data/test/data/rct-doc/doc_detect_rbtest.taf +8 -0
- data/test/data/rct-doc/doc_detect_rbtest2.taf +14 -0
- data/test/data/rct-doc/doc_rbtest.taf +14 -0
- data/test/data/rct-doc/refe.taf +8 -0
- data/test/data/rct-doc/ri.taf +8 -0
- data/test/data/rct-doc/ri_emacs.taf +8 -0
- data/test/data/rct-doc/ri_vim.taf +8 -0
- data/test/data/xmpfilter/add_markers.taf +10 -0
- data/test/data/xmpfilter/bindings.taf +63 -0
- data/test/data/xmpfilter/comment_out.taf +22 -0
- data/test/data/xmpfilter/exception.taf +14 -0
- data/test/data/xmpfilter/expectations.taf +54 -0
- data/test/data/xmpfilter/last_match.taf +18 -0
- data/test/data/xmpfilter/mult.rb +9 -0
- data/test/data/xmpfilter/multi_line_annotation_1.taf +22 -0
- data/test/data/xmpfilter/multi_line_annotation_2.taf +24 -0
- data/test/data/xmpfilter/multi_line_annotation_3.taf +20 -0
- data/test/data/xmpfilter/multi_line_annotation_4.taf +22 -0
- data/test/data/xmpfilter/multi_line_annotation_5.taf +34 -0
- data/test/data/xmpfilter/no_warnings.taf +13 -0
- data/test/data/xmpfilter/nospace.taf +16 -0
- data/test/data/xmpfilter/rspec.taf +106 -0
- data/test/data/xmpfilter/rspec_poetry.taf +106 -0
- data/test/data/xmpfilter/simple_annotation.taf +22 -0
- data/test/data/xmpfilter/unit_test.taf +108 -0
- data/test/data/xmpfilter/unit_test_detect_rbtest.taf +108 -0
- data/test/data/xmpfilter/unit_test_detect_rbtest2.taf +18 -0
- data/test/data/xmpfilter/unit_test_poetry.taf +108 -0
- data/test/data/xmpfilter/unit_test_rbtest.taf +18 -0
- data/test/data/xmpfilter/width.taf +16 -0
- data/test/tmp_functional.rb +162 -0
- data/test/tmp_run.rb +66 -0
- metadata +127 -22
@@ -0,0 +1,17 @@
|
|
1
|
+
==========
|
2
|
+
completion_in_method__testmethod
|
3
|
+
==========
|
4
|
+
rct-complete --filename %s --line 2 -t %s@test_fooz
|
5
|
+
==========
|
6
|
+
def fooz
|
7
|
+
[].lengt
|
8
|
+
end
|
9
|
+
==========
|
10
|
+
length
|
11
|
+
==========
|
12
|
+
require 'test/unit'
|
13
|
+
class TestFooz < Test::Unit::TestCase
|
14
|
+
def test_fooz
|
15
|
+
assert_equal(0, fooz)
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
==========
|
2
|
+
completion_in_method__testscript
|
3
|
+
==========
|
4
|
+
rct-complete --filename %s --line 2 -t %s
|
5
|
+
==========
|
6
|
+
def fooz
|
7
|
+
[].lengt
|
8
|
+
end
|
9
|
+
==========
|
10
|
+
length
|
11
|
+
==========
|
12
|
+
require 'test/unit'
|
13
|
+
class TestFooz < Test::Unit::TestCase
|
14
|
+
def test_fooz
|
15
|
+
assert_equal(0, fooz)
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
==========
|
2
|
+
completion_in_method__wrong_testmethod
|
3
|
+
==========
|
4
|
+
rct-complete --filename %s --line 2 -t %s@test_NOT_FOUND
|
5
|
+
==========
|
6
|
+
def fooz
|
7
|
+
[].lengt
|
8
|
+
end
|
9
|
+
==========
|
10
|
+
|
11
|
+
==========
|
12
|
+
require 'test/unit'
|
13
|
+
class TestFooz < Test::Unit::TestCase
|
14
|
+
def test_fooz
|
15
|
+
assert_equal(0, fooz)
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
==========
|
2
|
+
completion_emacs
|
3
|
+
==========
|
4
|
+
rct-complete --completion-emacs --line=1
|
5
|
+
==========
|
6
|
+
Array.new(3).uni
|
7
|
+
==========
|
8
|
+
(progn
|
9
|
+
(setq rct-method-completion-table '(("uniq") ("uniq!") ))
|
10
|
+
(setq alist '(("uniq\t[Array#uniq]") ("uniq!\t[Array#uniq!]") ))
|
11
|
+
(setq pattern "uni")
|
12
|
+
(try-completion pattern rct-method-completion-table nil)
|
13
|
+
)
|
@@ -0,0 +1,13 @@
|
|
1
|
+
==========
|
2
|
+
completion_emacs_icicles
|
3
|
+
==========
|
4
|
+
rct-complete --completion-emacs-icicles --line=1
|
5
|
+
==========
|
6
|
+
1.div
|
7
|
+
==========
|
8
|
+
(progn
|
9
|
+
(setq rct-method-completion-table '(("div\t[Fixnum#div]") ("divmod\t[Fixnum#divmod]") ))
|
10
|
+
(setq alist '(("div" . "Fixnum#div")("divmod" . "Fixnum#divmod")))
|
11
|
+
(setq pattern "div")
|
12
|
+
(setq klass "Fixnum")
|
13
|
+
)
|
@@ -0,0 +1,63 @@
|
|
1
|
+
==========
|
2
|
+
bindings
|
3
|
+
==========
|
4
|
+
xmpfilter --poetry -u
|
5
|
+
==========
|
6
|
+
|
7
|
+
require 'test/unit'
|
8
|
+
|
9
|
+
class TestFoo < Test::Unit::TestCase
|
10
|
+
def setup
|
11
|
+
@o = []
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_foo
|
15
|
+
a = 1
|
16
|
+
b = a
|
17
|
+
b # =>
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_arr
|
21
|
+
last = 1
|
22
|
+
@o << last
|
23
|
+
@o.last # =>
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_bar
|
27
|
+
a = b = c = 1
|
28
|
+
d = a
|
29
|
+
d # =>
|
30
|
+
end
|
31
|
+
end
|
32
|
+
==========
|
33
|
+
|
34
|
+
require 'test/unit'
|
35
|
+
|
36
|
+
class TestFoo < Test::Unit::TestCase
|
37
|
+
def setup
|
38
|
+
@o = []
|
39
|
+
end
|
40
|
+
|
41
|
+
def test_foo
|
42
|
+
a = 1
|
43
|
+
b = a
|
44
|
+
assert_equal a, b
|
45
|
+
assert_equal 1, b
|
46
|
+
end
|
47
|
+
|
48
|
+
def test_arr
|
49
|
+
last = 1
|
50
|
+
@o << last
|
51
|
+
assert_equal last, @o.last
|
52
|
+
assert_equal 1, @o.last
|
53
|
+
end
|
54
|
+
|
55
|
+
def test_bar
|
56
|
+
a = b = c = 1
|
57
|
+
d = a
|
58
|
+
assert_equal a, d
|
59
|
+
assert_equal b, d
|
60
|
+
assert_equal c, d
|
61
|
+
assert_equal 1, d
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
==========
|
2
|
+
expectations
|
3
|
+
==========
|
4
|
+
xmpfilter --expectations
|
5
|
+
==========
|
6
|
+
|
7
|
+
require 'rubygems'
|
8
|
+
require 'expectations'
|
9
|
+
|
10
|
+
S = Struct.new :a
|
11
|
+
Expectations do
|
12
|
+
1 + 1 # =>
|
13
|
+
"a".length # =>
|
14
|
+
[][1] # =>
|
15
|
+
1.hoge # =>
|
16
|
+
1.1 + 1.0 # =>
|
17
|
+
S.new(1) # =>
|
18
|
+
end
|
19
|
+
==========
|
20
|
+
|
21
|
+
require 'rubygems'
|
22
|
+
require 'expectations'
|
23
|
+
|
24
|
+
S = Struct.new :a
|
25
|
+
Expectations do
|
26
|
+
expect 2 do
|
27
|
+
1 + 1
|
28
|
+
end
|
29
|
+
|
30
|
+
expect 1 do
|
31
|
+
"a".length
|
32
|
+
end
|
33
|
+
|
34
|
+
expect nil do
|
35
|
+
[][1]
|
36
|
+
end
|
37
|
+
|
38
|
+
expect NoMethodError do
|
39
|
+
1.hoge
|
40
|
+
end
|
41
|
+
|
42
|
+
expect 2.0999..2.1001 do
|
43
|
+
1.1 + 1.0
|
44
|
+
end
|
45
|
+
|
46
|
+
expect S do
|
47
|
+
S.new(1)
|
48
|
+
end
|
49
|
+
|
50
|
+
expect "#<struct S a=1>" do
|
51
|
+
S.new(1).inspect
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|