mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
Sort out all the tests
This commit is contained in:
parent
cc11cb9e44
commit
8e547c4536
4
test/fixtures/ruby/corpus/alias.parseA.txt
vendored
4
test/fixtures/ruby/corpus/alias.parseA.txt
vendored
@ -1,8 +1,8 @@
|
||||
(Statements
|
||||
(Call
|
||||
(Identifier)
|
||||
(Symbol)
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(SymbolElement)
|
||||
(Empty))
|
||||
(Call
|
||||
(Identifier)
|
||||
|
4
test/fixtures/ruby/corpus/calls.parseA.txt
vendored
4
test/fixtures/ruby/corpus/calls.parseA.txt
vendored
@ -6,10 +6,10 @@
|
||||
(Send
|
||||
(Identifier))
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Integer))
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Boolean)))
|
||||
(Send
|
||||
(Send
|
||||
|
@ -2,10 +2,10 @@
|
||||
{+(TextElement)+}
|
||||
{+(TextElement)+}
|
||||
{+(TextElement)+}
|
||||
{ (TextElement)
|
||||
->(TextElement) }
|
||||
{+(TextElement)+}
|
||||
{+(TextElement)+}
|
||||
{+(TextElement)+}
|
||||
{-(TextElement)-}
|
||||
{-(TextElement)-}
|
||||
{-(TextElement)-}
|
||||
{-(TextElement)-}
|
||||
|
@ -4,8 +4,8 @@
|
||||
{+(TextElement)+}
|
||||
{+(TextElement)+}
|
||||
{+(TextElement)+}
|
||||
{+(TextElement)+}
|
||||
{-(TextElement)-}
|
||||
{ (TextElement)
|
||||
->(TextElement) }
|
||||
{-(TextElement)-}
|
||||
{-(TextElement)-}
|
||||
{-(TextElement)-}
|
||||
|
@ -10,8 +10,8 @@
|
||||
(Send
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
{ (Symbol)
|
||||
->(Symbol) })
|
||||
{ (SymbolElement)
|
||||
->(SymbolElement) })
|
||||
{-(Assignment
|
||||
{-(Subscript
|
||||
{-(Send
|
||||
|
@ -10,8 +10,8 @@
|
||||
(Send
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
{ (Symbol)
|
||||
->(Symbol) })
|
||||
{ (SymbolElement)
|
||||
->(SymbolElement) })
|
||||
{+(Assignment
|
||||
{+(Subscript
|
||||
{+(Send
|
||||
|
@ -7,7 +7,7 @@
|
||||
(Subscript
|
||||
(Send
|
||||
(Identifier))
|
||||
(Symbol))
|
||||
(SymbolElement))
|
||||
(Assignment
|
||||
(Subscript
|
||||
(Send
|
||||
|
@ -6,4 +6,4 @@
|
||||
(Subscript
|
||||
(Send
|
||||
(Identifier))
|
||||
(Symbol)))
|
||||
(SymbolElement)))
|
||||
|
37
test/fixtures/ruby/corpus/for.diffB-A.txt
vendored
37
test/fixtures/ruby/corpus/for.diffB-A.txt
vendored
@ -7,33 +7,34 @@
|
||||
{+(Identifier)+})+}
|
||||
{+(Send
|
||||
{+(Identifier)+})+})+}
|
||||
{+(ForEach
|
||||
{+(Statements
|
||||
{+(Send
|
||||
{+(Identifier)+})+}
|
||||
{+(Send
|
||||
{+(Identifier)+})+})+}
|
||||
{+(Send
|
||||
{+(Identifier)+})+}
|
||||
{+(Send
|
||||
{+(Identifier)+})+})+}
|
||||
(ForEach
|
||||
(Statements
|
||||
(Send
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
{+(Send
|
||||
{+(Identifier)+})+})
|
||||
->(Identifier) }))
|
||||
{ (Array
|
||||
{-(Integer)-}
|
||||
{-(Integer)-}
|
||||
{-(Integer)-})
|
||||
->(Send
|
||||
{+(Identifier)+}) }
|
||||
(Send
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
->(Enumeration
|
||||
{+(Integer)+}
|
||||
{+(Integer)+}
|
||||
{+(Empty)+}) }
|
||||
{ (Send
|
||||
{-(Identifier)-}
|
||||
{-(Send
|
||||
{-(Identifier)-})-}))
|
||||
{+(ForEach
|
||||
{+(Statements
|
||||
{+(Send
|
||||
{+(Identifier)+})+})+}
|
||||
{+(Enumeration
|
||||
{+(Integer)+}
|
||||
{+(Integer)+}
|
||||
{+(Empty)+})+}
|
||||
{+(Boolean)+})+}
|
||||
{-(Identifier)-})-})
|
||||
->(Boolean) })
|
||||
{+(ForEach
|
||||
{+(Statements
|
||||
{+(Send
|
||||
|
30
test/fixtures/ruby/corpus/hash.diffA-B.txt
vendored
30
test/fixtures/ruby/corpus/hash.diffA-B.txt
vendored
@ -1,29 +1,31 @@
|
||||
(Statements
|
||||
(Hash
|
||||
(KeyValue
|
||||
{ (Symbol)
|
||||
->(Symbol) }
|
||||
{ (SymbolElement)
|
||||
->(SymbolElement) }
|
||||
{ (TextElement)
|
||||
->(TextElement) })
|
||||
(KeyValue
|
||||
{ (Symbol)
|
||||
->(Symbol) }
|
||||
{ (Integer)
|
||||
->(Integer) })
|
||||
(KeyValue
|
||||
{ (TextElement)
|
||||
->(Symbol) }
|
||||
{ (Boolean)
|
||||
->(Boolean) })
|
||||
{+(KeyValue
|
||||
{+(SymbolElement)+}
|
||||
{+(Integer)+})+}
|
||||
{+(KeyValue
|
||||
{+(SymbolElement)+}
|
||||
{+(Boolean)+})+}
|
||||
{-(KeyValue
|
||||
{-(Symbol)-}
|
||||
{-(SymbolElement)-}
|
||||
{-(Integer)-})-}
|
||||
{-(KeyValue
|
||||
{-(TextElement)-}
|
||||
{-(Boolean)-})-}
|
||||
{-(KeyValue
|
||||
{-(SymbolElement)-}
|
||||
{-(Integer)-})-})
|
||||
{-(Hash)-}
|
||||
{-(Hash
|
||||
{-(Context
|
||||
{-(Comment)-}
|
||||
{-(KeyValue
|
||||
{-(Symbol)-}
|
||||
{-(SymbolElement)-}
|
||||
{-(Integer)-})-})-}
|
||||
{-(Context
|
||||
{-(Comment)-}
|
||||
|
30
test/fixtures/ruby/corpus/hash.diffB-A.txt
vendored
30
test/fixtures/ruby/corpus/hash.diffB-A.txt
vendored
@ -1,29 +1,29 @@
|
||||
(Statements
|
||||
(Hash
|
||||
(KeyValue
|
||||
{ (Symbol)
|
||||
->(Symbol) }
|
||||
{ (SymbolElement)
|
||||
->(SymbolElement) }
|
||||
{ (TextElement)
|
||||
->(TextElement) })
|
||||
(KeyValue
|
||||
{ (Symbol)
|
||||
->(Symbol) }
|
||||
{ (Integer)
|
||||
->(Integer) })
|
||||
(KeyValue
|
||||
{ (Symbol)
|
||||
->(TextElement) }
|
||||
{ (Boolean)
|
||||
->(Boolean) })
|
||||
{+(KeyValue
|
||||
{+(Symbol)+}
|
||||
{+(Integer)+})+})
|
||||
{+(SymbolElement)+}
|
||||
{+(Integer)+})+}
|
||||
(KeyValue
|
||||
{ (SymbolElement)
|
||||
->(TextElement) }
|
||||
{ (Integer)
|
||||
->(Boolean) })
|
||||
(KeyValue
|
||||
{ (SymbolElement)
|
||||
->(SymbolElement) }
|
||||
{ (Boolean)
|
||||
->(Integer) }))
|
||||
{+(Hash)+}
|
||||
{+(Hash
|
||||
{+(Context
|
||||
{+(Comment)+}
|
||||
{+(KeyValue
|
||||
{+(Symbol)+}
|
||||
{+(SymbolElement)+}
|
||||
{+(Integer)+})+})+}
|
||||
{+(Context
|
||||
{+(Comment)+}
|
||||
|
8
test/fixtures/ruby/corpus/hash.parseA.txt
vendored
8
test/fixtures/ruby/corpus/hash.parseA.txt
vendored
@ -1,23 +1,23 @@
|
||||
(Statements
|
||||
(Hash
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(TextElement))
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Integer))
|
||||
(KeyValue
|
||||
(TextElement)
|
||||
(Boolean))
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Integer)))
|
||||
(Hash)
|
||||
(Hash
|
||||
(Context
|
||||
(Comment)
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Integer)))
|
||||
(Context
|
||||
(Comment)
|
||||
|
6
test/fixtures/ruby/corpus/hash.parseB.txt
vendored
6
test/fixtures/ruby/corpus/hash.parseB.txt
vendored
@ -1,11 +1,11 @@
|
||||
(Statements
|
||||
(Hash
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(TextElement))
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Integer))
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Boolean))))
|
||||
|
@ -3,7 +3,9 @@
|
||||
{+(Send
|
||||
{+(Identifier)+}
|
||||
{+(TextElement)+}
|
||||
{+(TextElement)+})+}
|
||||
{+(Statements
|
||||
{+(TextElement)+})+})+}
|
||||
{+(Identifier)+})+}
|
||||
{-(TextElement)-}
|
||||
{-(TextElement)-})
|
||||
{-(Statements
|
||||
{-(TextElement)-})-})
|
||||
|
@ -1,9 +1,11 @@
|
||||
(Statements
|
||||
{+(TextElement)+}
|
||||
{+(TextElement)+}
|
||||
{+(Statements
|
||||
{+(TextElement)+})+}
|
||||
{-(Send
|
||||
{-(Send
|
||||
{-(Identifier)-}
|
||||
{-(TextElement)-}
|
||||
{-(TextElement)-})-}
|
||||
{-(Statements
|
||||
{-(TextElement)-})-})-}
|
||||
{-(Identifier)-})-})
|
||||
|
3
test/fixtures/ruby/corpus/heredoc.parseA.txt
vendored
3
test/fixtures/ruby/corpus/heredoc.parseA.txt
vendored
@ -1,3 +1,4 @@
|
||||
(Statements
|
||||
(TextElement)
|
||||
(TextElement))
|
||||
(Statements
|
||||
(TextElement)))
|
||||
|
3
test/fixtures/ruby/corpus/heredoc.parseB.txt
vendored
3
test/fixtures/ruby/corpus/heredoc.parseB.txt
vendored
@ -3,5 +3,6 @@
|
||||
(Send
|
||||
(Identifier)
|
||||
(TextElement)
|
||||
(TextElement))
|
||||
(Statements
|
||||
(TextElement)))
|
||||
(Identifier)))
|
||||
|
@ -1,5 +1,11 @@
|
||||
(Statements
|
||||
{ (Symbol)
|
||||
->(Symbol) }
|
||||
{ (TextElement)
|
||||
->(TextElement) })
|
||||
(Symbol
|
||||
(InterpolationElement
|
||||
(Send
|
||||
{ (Identifier)
|
||||
->(Identifier) })))
|
||||
(String
|
||||
(InterpolationElement
|
||||
(Send
|
||||
{ (Identifier)
|
||||
->(Identifier) }))))
|
||||
|
@ -1,5 +1,11 @@
|
||||
(Statements
|
||||
{ (Symbol)
|
||||
->(Symbol) }
|
||||
{ (TextElement)
|
||||
->(TextElement) })
|
||||
(Symbol
|
||||
(InterpolationElement
|
||||
(Send
|
||||
{ (Identifier)
|
||||
->(Identifier) })))
|
||||
(String
|
||||
(InterpolationElement
|
||||
(Send
|
||||
{ (Identifier)
|
||||
->(Identifier) }))))
|
||||
|
@ -1,3 +1,9 @@
|
||||
(Statements
|
||||
(Symbol)
|
||||
(TextElement))
|
||||
(Symbol
|
||||
(InterpolationElement
|
||||
(Send
|
||||
(Identifier))))
|
||||
(String
|
||||
(InterpolationElement
|
||||
(Send
|
||||
(Identifier)))))
|
||||
|
@ -1,3 +1,9 @@
|
||||
(Statements
|
||||
(Symbol)
|
||||
(TextElement))
|
||||
(Symbol
|
||||
(InterpolationElement
|
||||
(Send
|
||||
(Identifier))))
|
||||
(String
|
||||
(InterpolationElement
|
||||
(Send
|
||||
(Identifier)))))
|
||||
|
@ -2,7 +2,7 @@
|
||||
(Boolean)
|
||||
(Boolean)
|
||||
(Null)
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Integer)
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
|
@ -2,8 +2,8 @@
|
||||
(Send
|
||||
(Identifier)
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Boolean))
|
||||
{+(KeyValue
|
||||
{+(Symbol)+}
|
||||
{+(SymbolElement)+}
|
||||
{+(Integer)+})+}))
|
||||
|
@ -2,8 +2,8 @@
|
||||
(Send
|
||||
(Identifier)
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Boolean))
|
||||
{-(KeyValue
|
||||
{-(Symbol)-}
|
||||
{-(SymbolElement)-}
|
||||
{-(Integer)-})-}))
|
||||
|
@ -2,5 +2,5 @@
|
||||
(Send
|
||||
(Identifier)
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Boolean))))
|
||||
|
@ -2,8 +2,8 @@
|
||||
(Send
|
||||
(Identifier)
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Boolean))
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Integer))))
|
||||
|
@ -2,8 +2,8 @@
|
||||
(Send
|
||||
(Identifier)
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Boolean))
|
||||
{+(KeyValue
|
||||
{+(Symbol)+}
|
||||
{+(SymbolElement)+}
|
||||
{+(Integer)+})+}))
|
||||
|
@ -2,8 +2,8 @@
|
||||
(Send
|
||||
(Identifier)
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Boolean))
|
||||
{-(KeyValue
|
||||
{-(Symbol)-}
|
||||
{-(SymbolElement)-}
|
||||
{-(Integer)-})-}))
|
||||
|
@ -2,5 +2,5 @@
|
||||
(Send
|
||||
(Identifier)
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Boolean))))
|
||||
|
@ -2,8 +2,8 @@
|
||||
(Send
|
||||
(Identifier)
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Boolean))
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Integer))))
|
||||
|
@ -11,10 +11,10 @@
|
||||
{-(Send
|
||||
{-(Identifier)-})-}
|
||||
{-(KeyValue
|
||||
{-(Symbol)-}
|
||||
{-(SymbolElement)-}
|
||||
{-(Integer)-})-}
|
||||
{-(KeyValue
|
||||
{-(Symbol)-}
|
||||
{-(SymbolElement)-}
|
||||
{-(Integer)-})-})-}
|
||||
{-(Send
|
||||
{-(Identifier)-}
|
||||
|
@ -11,10 +11,10 @@
|
||||
{+(Send
|
||||
{+(Identifier)+})+}
|
||||
{+(KeyValue
|
||||
{+(Symbol)+}
|
||||
{+(SymbolElement)+}
|
||||
{+(Integer)+})+}
|
||||
{+(KeyValue
|
||||
{+(Symbol)+}
|
||||
{+(SymbolElement)+}
|
||||
{+(Integer)+})+})+}
|
||||
{+(Send
|
||||
{+(Identifier)+}
|
||||
|
@ -10,10 +10,10 @@
|
||||
(Send
|
||||
(Identifier))
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Integer))
|
||||
(KeyValue
|
||||
(Symbol)
|
||||
(SymbolElement)
|
||||
(Integer)))
|
||||
(Send
|
||||
(Identifier)
|
||||
|
4
test/fixtures/ruby/corpus/number.diffA-B.txt
vendored
4
test/fixtures/ruby/corpus/number.diffA-B.txt
vendored
@ -1,6 +1,5 @@
|
||||
(Statements
|
||||
{ (Integer)
|
||||
->(Integer) }
|
||||
{+(Integer)+}
|
||||
{+(Integer)+}
|
||||
{+(Integer)+}
|
||||
{+(Integer)+}
|
||||
@ -12,4 +11,5 @@
|
||||
{-(Integer)-}
|
||||
{-(Integer)-}
|
||||
{-(Integer)-}
|
||||
{-(Integer)-}
|
||||
{-(Float)-})
|
||||
|
8
test/fixtures/ruby/corpus/number.diffB-A.txt
vendored
8
test/fixtures/ruby/corpus/number.diffB-A.txt
vendored
@ -1,15 +1,15 @@
|
||||
(Statements
|
||||
{ (Integer)
|
||||
->(Integer) }
|
||||
{+(Integer)+}
|
||||
{+(Integer)+}
|
||||
{+(Integer)+}
|
||||
{ (Integer)
|
||||
->(Integer) }
|
||||
{+(Integer)+}
|
||||
{ (Integer)
|
||||
->(Integer) }
|
||||
{+(Integer)+}
|
||||
{+(Float)+}
|
||||
{-(Integer)-}
|
||||
{-(Integer)-}
|
||||
{-(Integer)-}
|
||||
{-(Integer)-}
|
||||
{-(Integer)-}
|
||||
{-(Float)-})
|
||||
|
@ -1,4 +1,9 @@
|
||||
(Statements
|
||||
(Array
|
||||
{+(Send
|
||||
{+(Identifier)+})+}))
|
||||
(TextElement)
|
||||
{+(String
|
||||
{+(InterpolationElement
|
||||
{+(Send
|
||||
{+(Identifier)+})+})+})+}
|
||||
{ (TextElement)
|
||||
->(TextElement) }))
|
||||
|
@ -1,4 +1,9 @@
|
||||
(Statements
|
||||
(Array
|
||||
{-(Send
|
||||
{-(Identifier)-})-}))
|
||||
(TextElement)
|
||||
{+(TextElement)+}
|
||||
{-(String
|
||||
{-(InterpolationElement
|
||||
{-(Send
|
||||
{-(Identifier)-})-})-})-}
|
||||
{-(TextElement)-}))
|
||||
|
@ -1,2 +1,4 @@
|
||||
(Statements
|
||||
(Array))
|
||||
(Array
|
||||
(TextElement)
|
||||
(TextElement)))
|
||||
|
@ -1,4 +1,8 @@
|
||||
(Statements
|
||||
(Array
|
||||
(Send
|
||||
(Identifier))))
|
||||
(TextElement)
|
||||
(String
|
||||
(InterpolationElement
|
||||
(Send
|
||||
(Identifier))))
|
||||
(TextElement)))
|
||||
|
12
test/fixtures/ruby/corpus/symbol.diffA-B.txt
vendored
12
test/fixtures/ruby/corpus/symbol.diffA-B.txt
vendored
@ -1,7 +1,7 @@
|
||||
(Statements
|
||||
{+(Symbol)+}
|
||||
{ (Symbol)
|
||||
->(Symbol) }
|
||||
{ (Symbol)
|
||||
->(Symbol) }
|
||||
{-(Symbol)-})
|
||||
{ (SymbolElement)
|
||||
->(SymbolElement) }
|
||||
{ (SymbolElement)
|
||||
->(SymbolElement) }
|
||||
{ (SymbolElement)
|
||||
->(SymbolElement) })
|
||||
|
12
test/fixtures/ruby/corpus/symbol.diffB-A.txt
vendored
12
test/fixtures/ruby/corpus/symbol.diffB-A.txt
vendored
@ -1,7 +1,7 @@
|
||||
(Statements
|
||||
{+(Symbol)+}
|
||||
{+(Symbol)+}
|
||||
{+(Symbol)+}
|
||||
{-(Symbol)-}
|
||||
{-(Symbol)-}
|
||||
{-(Symbol)-})
|
||||
{ (SymbolElement)
|
||||
->(SymbolElement) }
|
||||
{ (SymbolElement)
|
||||
->(SymbolElement) }
|
||||
{ (SymbolElement)
|
||||
->(SymbolElement) })
|
||||
|
Loading…
Reference in New Issue
Block a user