1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +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 (Statements
(Call (Call
(Identifier) (Identifier)
(Symbol) (SymbolElement)
(Symbol) (SymbolElement)
(Empty)) (Empty))
(Call (Call
(Identifier) (Identifier)

View File

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

View File

@ -2,10 +2,10 @@
{+(TextElement)+} {+(TextElement)+}
{+(TextElement)+} {+(TextElement)+}
{+(TextElement)+} {+(TextElement)+}
{ (TextElement)
->(TextElement) }
{+(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) }
{-(TextElement)-} {-(TextElement)-}
{-(TextElement)-} {-(TextElement)-}
{-(TextElement)-} {-(TextElement)-}

View File

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

View File

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

View File

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

View File

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

View File

@ -7,33 +7,34 @@
{+(Identifier)+})+} {+(Identifier)+})+}
{+(Send {+(Send
{+(Identifier)+})+})+} {+(Identifier)+})+})+}
{+(ForEach
{+(Statements
{+(Send
{+(Identifier)+})+}
{+(Send
{+(Identifier)+})+})+}
{+(Send
{+(Identifier)+})+}
{+(Send
{+(Identifier)+})+})+}
(ForEach (ForEach
(Statements (Statements
(Send (Send
{ (Identifier) { (Identifier)
->(Identifier) }) ->(Identifier) }))
{+(Send
{+(Identifier)+})+})
{ (Array { (Array
{-(Integer)-} {-(Integer)-}
{-(Integer)-} {-(Integer)-}
{-(Integer)-}) {-(Integer)-})
->(Send ->(Enumeration
{+(Identifier)+}) } {+(Integer)+}
(Send {+(Integer)+}
{ (Identifier) {+(Empty)+}) }
->(Identifier) } { (Send
{-(Identifier)-}
{-(Send {-(Send
{-(Identifier)-})-})) {-(Identifier)-})-})
{+(ForEach ->(Boolean) })
{+(Statements
{+(Send
{+(Identifier)+})+})+}
{+(Enumeration
{+(Integer)+}
{+(Integer)+}
{+(Empty)+})+}
{+(Boolean)+})+}
{+(ForEach {+(ForEach
{+(Statements {+(Statements
{+(Send {+(Send

View File

@ -1,29 +1,31 @@
(Statements (Statements
(Hash (Hash
(KeyValue (KeyValue
{ (Symbol) { (SymbolElement)
->(Symbol) } ->(SymbolElement) }
{ (TextElement) { (TextElement)
->(TextElement) }) ->(TextElement) })
(KeyValue {+(KeyValue
{ (Symbol) {+(SymbolElement)+}
->(Symbol) } {+(Integer)+})+}
{ (Integer) {+(KeyValue
->(Integer) }) {+(SymbolElement)+}
(KeyValue {+(Boolean)+})+}
{ (TextElement)
->(Symbol) }
{ (Boolean)
->(Boolean) })
{-(KeyValue {-(KeyValue
{-(Symbol)-} {-(SymbolElement)-}
{-(Integer)-})-}
{-(KeyValue
{-(TextElement)-}
{-(Boolean)-})-}
{-(KeyValue
{-(SymbolElement)-}
{-(Integer)-})-}) {-(Integer)-})-})
{-(Hash)-} {-(Hash)-}
{-(Hash {-(Hash
{-(Context {-(Context
{-(Comment)-} {-(Comment)-}
{-(KeyValue {-(KeyValue
{-(Symbol)-} {-(SymbolElement)-}
{-(Integer)-})-})-} {-(Integer)-})-})-}
{-(Context {-(Context
{-(Comment)-} {-(Comment)-}

View File

@ -1,29 +1,29 @@
(Statements (Statements
(Hash (Hash
(KeyValue (KeyValue
{ (Symbol) { (SymbolElement)
->(Symbol) } ->(SymbolElement) }
{ (TextElement) { (TextElement)
->(TextElement) }) ->(TextElement) })
(KeyValue
{ (Symbol)
->(Symbol) }
{ (Integer)
->(Integer) })
(KeyValue
{ (Symbol)
->(TextElement) }
{ (Boolean)
->(Boolean) })
{+(KeyValue {+(KeyValue
{+(Symbol)+} {+(SymbolElement)+}
{+(Integer)+})+}) {+(Integer)+})+}
(KeyValue
{ (SymbolElement)
->(TextElement) }
{ (Integer)
->(Boolean) })
(KeyValue
{ (SymbolElement)
->(SymbolElement) }
{ (Boolean)
->(Integer) }))
{+(Hash)+} {+(Hash)+}
{+(Hash {+(Hash
{+(Context {+(Context
{+(Comment)+} {+(Comment)+}
{+(KeyValue {+(KeyValue
{+(Symbol)+} {+(SymbolElement)+}
{+(Integer)+})+})+} {+(Integer)+})+})+}
{+(Context {+(Context
{+(Comment)+} {+(Comment)+}

View File

@ -1,23 +1,23 @@
(Statements (Statements
(Hash (Hash
(KeyValue (KeyValue
(Symbol) (SymbolElement)
(TextElement)) (TextElement))
(KeyValue (KeyValue
(Symbol) (SymbolElement)
(Integer)) (Integer))
(KeyValue (KeyValue
(TextElement) (TextElement)
(Boolean)) (Boolean))
(KeyValue (KeyValue
(Symbol) (SymbolElement)
(Integer))) (Integer)))
(Hash) (Hash)
(Hash (Hash
(Context (Context
(Comment) (Comment)
(KeyValue (KeyValue
(Symbol) (SymbolElement)
(Integer))) (Integer)))
(Context (Context
(Comment) (Comment)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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