aboutsummaryrefslogtreecommitdiffstats
path: root/test/manual
diff options
context:
space:
mode:
authorEli Zaretskii2016-08-26 22:32:05 +0300
committerEli Zaretskii2016-08-26 22:32:05 +0300
commit1c7166a3ba399efbefc65feb8a6a41ef0dfa33a4 (patch)
tree04916ca5f886d57d49d48a205e9fea72e7cf94f5 /test/manual
parent09428ffc633450d2ce584b6ac63426a16759f859 (diff)
downloademacs-1c7166a3ba399efbefc65feb8a6a41ef0dfa33a4.tar.gz
emacs-1c7166a3ba399efbefc65feb8a6a41ef0dfa33a4.zip
Fix etags test suite messed up by merges from emacs-25
* test/manual/etags/go-src/test.go: * test/manual/etags/go-src/test1.go: Move from test/etags/. * test/manual/etags/ruby-src/test1.ru: Replace test1.ruby. * test/etags/: Directory deleted.
Diffstat (limited to 'test/manual')
-rw-r--r--test/manual/etags/go-src/test.go11
-rw-r--r--test/manual/etags/go-src/test1.go34
-rw-r--r--test/manual/etags/ruby-src/test1.ru45
-rw-r--r--test/manual/etags/ruby-src/test1.ruby29
4 files changed, 90 insertions, 29 deletions
diff --git a/test/manual/etags/go-src/test.go b/test/manual/etags/go-src/test.go
new file mode 100644
index 00000000000..6aea26ef210
--- /dev/null
+++ b/test/manual/etags/go-src/test.go
@@ -0,0 +1,11 @@
1package main
2
3import "fmt"
4
5func say(msg string) {
6 fmt.Println(msg)
7}
8
9func main() {
10 say("Hello, Emacs!")
11}
diff --git a/test/manual/etags/go-src/test1.go b/test/manual/etags/go-src/test1.go
new file mode 100644
index 00000000000..6d1efaaa8a9
--- /dev/null
+++ b/test/manual/etags/go-src/test1.go
@@ -0,0 +1,34 @@
1package main
2
3import "fmt"
4
5type plus interface {
6 PrintAdd()
7}
8
9type str struct {
10 a, b string
11}
12
13type intNumber struct {
14 a, b int
15}
16
17func (s str) PrintAdd() {
18 fmt.Println(s.a + s.b)
19}
20
21func (n intNumber) PrintAdd() {
22 fmt.Println(n.a + n.b)
23}
24
25func test(p plus) {
26 p.PrintAdd()
27}
28
29func main() {
30 s := str{a: "Hello,", b: "Emacs!"}
31 number := intNumber{a: 1, b: 2}
32 test(number)
33 test(s)
34}
diff --git a/test/manual/etags/ruby-src/test1.ru b/test/manual/etags/ruby-src/test1.ru
new file mode 100644
index 00000000000..eafaec6248b
--- /dev/null
+++ b/test/manual/etags/ruby-src/test1.ru
@@ -0,0 +1,45 @@
1class A
2 def a()
3 super(" do ")
4 end
5 def b()
6 end
7end
8
9module A
10 class B
11 ABC = 4
12 Def_ = 'blah'
13 Xyzzy =10
14
15 def foo!
16 end
17
18 def self._bar?(abc)
19 end
20
21 class << self
22 def qux=(tee)
23 end
24 end
25
26 attr_reader :foo
27 attr_reader :read1 , :read2; attr_writer :write1, :write2
28 attr_writer :bar,
29 :baz,
30 :more
31 attr_accessor :tee
32 alias_method :qux, :tee, attr_accessor(:bogus)
33 alias_method :xyz,
34 :tee ; attr_reader :subtle
35 attr_reader(:foo1, :bar1, # comment
36 :qux1)
37 alias_method ( :foo2, #cmmt
38 :bar2)
39 end
40end
41
42A::Constant = 5
43
44# def foo_in_comment
45# end
diff --git a/test/manual/etags/ruby-src/test1.ruby b/test/manual/etags/ruby-src/test1.ruby
deleted file mode 100644
index 26b7d538b64..00000000000
--- a/test/manual/etags/ruby-src/test1.ruby
+++ /dev/null
@@ -1,29 +0,0 @@
1class A
2 def a()
3 super(" do ")
4 end
5 def b()
6 end
7end
8
9module A
10 class B
11 ABC = 4
12
13 def foo!
14 end
15
16 def self._bar?(abc)
17 end
18
19 class << self
20 def qux=(tee)
21 end
22 end
23 end
24end
25
26A::Constant = 5
27
28# def foo_in_comment
29# end