1
1
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:
Timothy Clem 2018-07-23 15:16:48 -07:00
parent cc11cb9e44
commit 8e547c4536
41 changed files with 181 additions and 132 deletions

View File

@ -1,8 +1,8 @@
(Statements
(Call
(Identifier)
(Symbol)
(Symbol)
(SymbolElement)
(SymbolElement)
(Empty))
(Call
(Identifier)

View File

@ -6,10 +6,10 @@
(Send
(Identifier))
(KeyValue
(Symbol)
(SymbolElement)
(Integer))
(KeyValue
(Symbol)
(SymbolElement)
(Boolean)))
(Send
(Send

View File

@ -2,10 +2,10 @@
{+(TextElement)+}
{+(TextElement)+}
{+(TextElement)+}
{ (TextElement)
->(TextElement) }
{+(TextElement)+}
{+(TextElement)+}
{+(TextElement)+}
{-(TextElement)-}
{-(TextElement)-}
{-(TextElement)-}
{-(TextElement)-}

View File

@ -4,8 +4,8 @@
{+(TextElement)+}
{+(TextElement)+}
{+(TextElement)+}
{+(TextElement)+}
{-(TextElement)-}
{ (TextElement)
->(TextElement) }
{-(TextElement)-}
{-(TextElement)-}
{-(TextElement)-}

View File

@ -10,8 +10,8 @@
(Send
{ (Identifier)
->(Identifier) })
{ (Symbol)
->(Symbol) })
{ (SymbolElement)
->(SymbolElement) })
{-(Assignment
{-(Subscript
{-(Send

View File

@ -10,8 +10,8 @@
(Send
{ (Identifier)
->(Identifier) })
{ (Symbol)
->(Symbol) })
{ (SymbolElement)
->(SymbolElement) })
{+(Assignment
{+(Subscript
{+(Send

View File

@ -7,7 +7,7 @@
(Subscript
(Send
(Identifier))
(Symbol))
(SymbolElement))
(Assignment
(Subscript
(Send

View File

@ -6,4 +6,4 @@
(Subscript
(Send
(Identifier))
(Symbol)))
(SymbolElement)))

View File

@ -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

View File

@ -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)-}

View File

@ -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)+}

View File

@ -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)

View File

@ -1,11 +1,11 @@
(Statements
(Hash
(KeyValue
(Symbol)
(SymbolElement)
(TextElement))
(KeyValue
(Symbol)
(SymbolElement)
(Integer))
(KeyValue
(Symbol)
(SymbolElement)
(Boolean))))

View File

@ -3,7 +3,9 @@
{+(Send
{+(Identifier)+}
{+(TextElement)+}
{+(TextElement)+})+}
{+(Statements
{+(TextElement)+})+})+}
{+(Identifier)+})+}
{-(TextElement)-}
{-(TextElement)-})
{-(Statements
{-(TextElement)-})-})

View File

@ -1,9 +1,11 @@
(Statements
{+(TextElement)+}
{+(TextElement)+}
{+(Statements
{+(TextElement)+})+}
{-(Send
{-(Send
{-(Identifier)-}
{-(TextElement)-}
{-(TextElement)-})-}
{-(Statements
{-(TextElement)-})-})-}
{-(Identifier)-})-})

View File

@ -1,3 +1,4 @@
(Statements
(TextElement)
(TextElement))
(Statements
(TextElement)))

View File

@ -3,5 +3,6 @@
(Send
(Identifier)
(TextElement)
(TextElement))
(Statements
(TextElement)))
(Identifier)))

View File

@ -1,5 +1,11 @@
(Statements
{ (Symbol)
->(Symbol) }
{ (TextElement)
->(TextElement) })
(Symbol
(InterpolationElement
(Send
{ (Identifier)
->(Identifier) })))
(String
(InterpolationElement
(Send
{ (Identifier)
->(Identifier) }))))

View File

@ -1,5 +1,11 @@
(Statements
{ (Symbol)
->(Symbol) }
{ (TextElement)
->(TextElement) })
(Symbol
(InterpolationElement
(Send
{ (Identifier)
->(Identifier) })))
(String
(InterpolationElement
(Send
{ (Identifier)
->(Identifier) }))))

View File

@ -1,3 +1,9 @@
(Statements
(Symbol)
(TextElement))
(Symbol
(InterpolationElement
(Send
(Identifier))))
(String
(InterpolationElement
(Send
(Identifier)))))

View File

@ -1,3 +1,9 @@
(Statements
(Symbol)
(TextElement))
(Symbol
(InterpolationElement
(Send
(Identifier))))
(String
(InterpolationElement
(Send
(Identifier)))))

View File

@ -2,7 +2,7 @@
(Boolean)
(Boolean)
(Null)
(Symbol)
(SymbolElement)
(Integer)
(Identifier)
(Identifier)

View File

@ -2,8 +2,8 @@
(Send
(Identifier)
(KeyValue
(Symbol)
(SymbolElement)
(Boolean))
{+(KeyValue
{+(Symbol)+}
{+(SymbolElement)+}
{+(Integer)+})+}))

View File

@ -2,8 +2,8 @@
(Send
(Identifier)
(KeyValue
(Symbol)
(SymbolElement)
(Boolean))
{-(KeyValue
{-(Symbol)-}
{-(SymbolElement)-}
{-(Integer)-})-}))

View File

@ -2,5 +2,5 @@
(Send
(Identifier)
(KeyValue
(Symbol)
(SymbolElement)
(Boolean))))

View File

@ -2,8 +2,8 @@
(Send
(Identifier)
(KeyValue
(Symbol)
(SymbolElement)
(Boolean))
(KeyValue
(Symbol)
(SymbolElement)
(Integer))))

View File

@ -2,8 +2,8 @@
(Send
(Identifier)
(KeyValue
(Symbol)
(SymbolElement)
(Boolean))
{+(KeyValue
{+(Symbol)+}
{+(SymbolElement)+}
{+(Integer)+})+}))

View File

@ -2,8 +2,8 @@
(Send
(Identifier)
(KeyValue
(Symbol)
(SymbolElement)
(Boolean))
{-(KeyValue
{-(Symbol)-}
{-(SymbolElement)-}
{-(Integer)-})-}))

View File

@ -2,5 +2,5 @@
(Send
(Identifier)
(KeyValue
(Symbol)
(SymbolElement)
(Boolean))))

View File

@ -2,8 +2,8 @@
(Send
(Identifier)
(KeyValue
(Symbol)
(SymbolElement)
(Boolean))
(KeyValue
(Symbol)
(SymbolElement)
(Integer))))

View File

@ -11,10 +11,10 @@
{-(Send
{-(Identifier)-})-}
{-(KeyValue
{-(Symbol)-}
{-(SymbolElement)-}
{-(Integer)-})-}
{-(KeyValue
{-(Symbol)-}
{-(SymbolElement)-}
{-(Integer)-})-})-}
{-(Send
{-(Identifier)-}

View File

@ -11,10 +11,10 @@
{+(Send
{+(Identifier)+})+}
{+(KeyValue
{+(Symbol)+}
{+(SymbolElement)+}
{+(Integer)+})+}
{+(KeyValue
{+(Symbol)+}
{+(SymbolElement)+}
{+(Integer)+})+})+}
{+(Send
{+(Identifier)+}

View File

@ -10,10 +10,10 @@
(Send
(Identifier))
(KeyValue
(Symbol)
(SymbolElement)
(Integer))
(KeyValue
(Symbol)
(SymbolElement)
(Integer)))
(Send
(Identifier)

View File

@ -1,6 +1,5 @@
(Statements
{ (Integer)
->(Integer) }
{+(Integer)+}
{+(Integer)+}
{+(Integer)+}
{+(Integer)+}
@ -12,4 +11,5 @@
{-(Integer)-}
{-(Integer)-}
{-(Integer)-}
{-(Integer)-}
{-(Float)-})

View File

@ -1,15 +1,15 @@
(Statements
{ (Integer)
->(Integer) }
{+(Integer)+}
{+(Integer)+}
{+(Integer)+}
{ (Integer)
->(Integer) }
{+(Integer)+}
{ (Integer)
->(Integer) }
{+(Integer)+}
{+(Float)+}
{-(Integer)-}
{-(Integer)-}
{-(Integer)-}
{-(Integer)-}
{-(Integer)-}
{-(Float)-})

View File

@ -1,4 +1,9 @@
(Statements
(Array
{+(Send
{+(Identifier)+})+}))
(TextElement)
{+(String
{+(InterpolationElement
{+(Send
{+(Identifier)+})+})+})+}
{ (TextElement)
->(TextElement) }))

View File

@ -1,4 +1,9 @@
(Statements
(Array
{-(Send
{-(Identifier)-})-}))
(TextElement)
{+(TextElement)+}
{-(String
{-(InterpolationElement
{-(Send
{-(Identifier)-})-})-})-}
{-(TextElement)-}))

View File

@ -1,2 +1,4 @@
(Statements
(Array))
(Array
(TextElement)
(TextElement)))

View File

@ -1,4 +1,8 @@
(Statements
(Array
(Send
(Identifier))))
(TextElement)
(String
(InterpolationElement
(Send
(Identifier))))
(TextElement)))

View File

@ -1,7 +1,7 @@
(Statements
{+(Symbol)+}
{ (Symbol)
->(Symbol) }
{ (Symbol)
->(Symbol) }
{-(Symbol)-})
{ (SymbolElement)
->(SymbolElement) }
{ (SymbolElement)
->(SymbolElement) }
{ (SymbolElement)
->(SymbolElement) })

View File

@ -1,7 +1,7 @@
(Statements
{+(Symbol)+}
{+(Symbol)+}
{+(Symbol)+}
{-(Symbol)-}
{-(Symbol)-}
{-(Symbol)-})
{ (SymbolElement)
->(SymbolElement) }
{ (SymbolElement)
->(SymbolElement) }
{ (SymbolElement)
->(SymbolElement) })