diff options
author | Eli Zaretskii <eliz@gnu.org> | 2016-08-26 22:32:05 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2016-08-26 22:32:05 +0300 |
commit | 1c7166a3ba399efbefc65feb8a6a41ef0dfa33a4 (patch) | |
tree | 04916ca5f886d57d49d48a205e9fea72e7cf94f5 /test/manual | |
parent | 09428ffc633450d2ce584b6ac63426a16759f859 (diff) | |
download | emacs-1c7166a3ba399efbefc65feb8a6a41ef0dfa33a4.tar.gz emacs-1c7166a3ba399efbefc65feb8a6a41ef0dfa33a4.tar.bz2 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.go | 11 | ||||
-rw-r--r-- | test/manual/etags/go-src/test1.go | 34 | ||||
-rw-r--r-- | test/manual/etags/ruby-src/test1.ru | 45 | ||||
-rw-r--r-- | test/manual/etags/ruby-src/test1.ruby | 29 |
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 @@ +package main + +import "fmt" + +func say(msg string) { + fmt.Println(msg) +} + +func main() { + say("Hello, Emacs!") +} 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 @@ +package main + +import "fmt" + +type plus interface { + PrintAdd() +} + +type str struct { + a, b string +} + +type intNumber struct { + a, b int +} + +func (s str) PrintAdd() { + fmt.Println(s.a + s.b) +} + +func (n intNumber) PrintAdd() { + fmt.Println(n.a + n.b) +} + +func test(p plus) { + p.PrintAdd() +} + +func main() { + s := str{a: "Hello,", b: "Emacs!"} + number := intNumber{a: 1, b: 2} + test(number) + test(s) +} 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 @@ +class A + def a() + super(" do ") + end + def b() + end +end + +module A + class B + ABC = 4 + Def_ = 'blah' + Xyzzy =10 + + def foo! + end + + def self._bar?(abc) + end + + class << self + def qux=(tee) + end + end + + attr_reader :foo + attr_reader :read1 , :read2; attr_writer :write1, :write2 + attr_writer :bar, + :baz, + :more + attr_accessor :tee + alias_method :qux, :tee, attr_accessor(:bogus) + alias_method :xyz, + :tee ; attr_reader :subtle + attr_reader(:foo1, :bar1, # comment + :qux1) + alias_method ( :foo2, #cmmt + :bar2) + end +end + +A::Constant = 5 + +# def foo_in_comment +# 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 @@ -class A - def a() - super(" do ") - end - def b() - end -end - -module A - class B - ABC = 4 - - def foo! - end - - def self._bar?(abc) - end - - class << self - def qux=(tee) - end - end - end -end - -A::Constant = 5 - -# def foo_in_comment -# end |