1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00

Fix a few test fixtures due to structure changes

This commit is contained in:
Timothy Clem 2018-09-10 11:15:34 -07:00
parent 8d4eab66b9
commit ceed3b0ae4
4 changed files with 149 additions and 102 deletions

View File

@ -4,36 +4,49 @@
(Function (Function
(Identifier) (Identifier)
(Statements (Statements
(Slice {+(Slice
(Identifier) {+(Identifier)+}
{ (Integer) {+(Integer)+}
->(Integer) } {+(Empty)+}
(Empty) {+(Empty)+})+}
(Empty)) {+(Slice
(Slice {+(Identifier)+}
(Identifier) {+(Empty)+}
(Empty) {+(Integer)+}
{ (Integer) {+(Empty)+})+}
->(Integer) } {+(Slice
(Empty)) {+(Identifier)+}
(Slice {+(Integer)+}
(Identifier) {+(Integer)+}
{ (Empty) {+(Empty)+})+}
->(Integer) }
{ (Empty)
->(Integer) }
(Empty))
(Slice
(Identifier)
{ (Integer)
->(Integer) }
{ (Integer)
->(Integer) }
{ (Integer)
->(Integer) })
(Slice (Slice
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
(Integer) (Integer)
(Integer) { (Empty)
(Empty))))) ->(Integer) }
{ (Empty)
->(Integer) })
(Slice
{ (Identifier)
->(Identifier) }
{ (Empty)
->(Integer) }
{ (Integer)
->(Integer) }
(Empty))
{-(Slice
{-(Identifier)-}
{-(Empty)-}
{-(Empty)-}
{-(Empty)-})-}
{-(Slice
{-(Identifier)-}
{-(Integer)-}
{-(Integer)-}
{-(Integer)-})-}
{-(Slice
{-(Identifier)-}
{-(Integer)-}
{-(Integer)-}
{-(Empty)-})-})))

View File

@ -4,36 +4,50 @@
(Function (Function
(Identifier) (Identifier)
(Statements (Statements
(Slice {+(Slice
(Identifier) {+(Identifier)+}
{ (Integer) {+(Integer)+}
->(Integer) } {+(Empty)+}
(Empty) {+(Empty)+})+}
(Empty)) {+(Slice
(Slice {+(Identifier)+}
(Identifier) {+(Empty)+}
(Empty) {+(Integer)+}
{ (Integer) {+(Empty)+})+}
->(Integer) } {+(Slice
(Empty)) {+(Identifier)+}
(Slice {+(Empty)+}
(Identifier) {+(Empty)+}
{ (Integer) {+(Empty)+})+}
->(Empty) } {+(Slice
{ (Integer) {+(Identifier)+}
->(Empty) } {+(Integer)+}
(Empty)) {+(Integer)+}
(Slice {+(Integer)+})+}
(Identifier)
{ (Integer)
->(Integer) }
{ (Integer)
->(Integer) }
{ (Integer)
->(Integer) })
(Slice (Slice
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
(Integer) (Integer)
(Integer) { (Empty)
(Empty))))) ->(Integer) }
(Empty))
{-(Slice
{-(Identifier)-}
{-(Empty)-}
{-(Integer)-}
{-(Empty)-})-}
{-(Slice
{-(Identifier)-}
{-(Integer)-}
{-(Integer)-}
{-(Empty)-})-}
{-(Slice
{-(Identifier)-}
{-(Integer)-}
{-(Integer)-}
{-(Integer)-})-}
{-(Slice
{-(Identifier)-}
{-(Integer)-}
{-(Integer)-}
{-(Empty)-})-})))

View File

@ -6,25 +6,35 @@
(Statements (Statements
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
(Negate {+(Negate
{ (Identifier) {+(Identifier)+})+}
->(Identifier) }) {+(Not
(Not {+(ReceiveOperator
(ReceiveOperator {+(Identifier)+})+})+}
{ (Identifier) {+(Pointer
->(Identifier) })) {+(Call
(Pointer {+(Identifier)+}
(Call {+(Statements)+}
{ (Identifier) {+(Empty)+})+})+}
->(Identifier) } {+(Complement
(Statements) {+(Identifier)+})+}
(Empty))) {+(Reference
(Complement {+(Identifier)+})+}
{ (Identifier) {+(ReceiveOperator
->(Identifier) }) {+(Identifier)+})+}
(Reference {-(Negate
{ (Identifier) {-(Identifier)-})-}
->(Identifier) }) {-(Not
(ReceiveOperator {-(ReceiveOperator
{ (Identifier) {-(Identifier)-})-})-}
->(Identifier) })))) {-(Pointer
{-(Call
{-(Identifier)-}
{-(Statements)-}
{-(Empty)-})-})-}
{-(Complement
{-(Identifier)-})-}
{-(Reference
{-(Identifier)-})-}
{-(ReceiveOperator
{-(Identifier)-})-})))

View File

@ -6,25 +6,35 @@
(Statements (Statements
{ (Identifier) { (Identifier)
->(Identifier) } ->(Identifier) }
(Negate {+(Negate
{ (Identifier) {+(Identifier)+})+}
->(Identifier) }) {+(Not
(Not {+(ReceiveOperator
(ReceiveOperator {+(Identifier)+})+})+}
{ (Identifier) {+(Pointer
->(Identifier) })) {+(Call
(Pointer {+(Identifier)+}
(Call {+(Statements)+}
{ (Identifier) {+(Empty)+})+})+}
->(Identifier) } {+(Complement
(Statements) {+(Identifier)+})+}
(Empty))) {+(Reference
(Complement {+(Identifier)+})+}
{ (Identifier) {+(ReceiveOperator
->(Identifier) }) {+(Identifier)+})+}
(Reference {-(Negate
{ (Identifier) {-(Identifier)-})-}
->(Identifier) }) {-(Not
(ReceiveOperator {-(ReceiveOperator
{ (Identifier) {-(Identifier)-})-})-}
->(Identifier) })))) {-(Pointer
{-(Call
{-(Identifier)-}
{-(Statements)-}
{-(Empty)-})-})-}
{-(Complement
{-(Identifier)-})-}
{-(Reference
{-(Identifier)-})-}
{-(ReceiveOperator
{-(Identifier)-})-})))