From 74fe887fb0b48c926e729fffa0b48ec8bf480be6 Mon Sep 17 00:00:00 2001 From: Timothy Clem Date: Thu, 24 Aug 2017 13:30:07 -0700 Subject: [PATCH] Fix up if --- test/fixtures/ruby/if.diffA-B.txt | 17 +++++++++++------ test/fixtures/ruby/if.diffB-A.txt | 17 +++++++++++------ test/fixtures/ruby/if.parseA.txt | 10 ++++++---- test/fixtures/ruby/if.parseB.txt | 8 ++++++-- 4 files changed, 34 insertions(+), 18 deletions(-) diff --git a/test/fixtures/ruby/if.diffA-B.txt b/test/fixtures/ruby/if.diffA-B.txt index 12bfa17c0..0bb5c5c6f 100644 --- a/test/fixtures/ruby/if.diffA-B.txt +++ b/test/fixtures/ruby/if.diffA-B.txt @@ -2,11 +2,16 @@ (If { (Identifier) ->(Identifier) } - {-(Identifier)-} - {-(Elsif + ([] + {-(Identifier)-}) + { (If (Identifier) - (Identifier) - (Else - (Identifier)))-}) + ( + (Identifier)) + ( + (Identifier))) + ->(Empty) }) {+(If - (Identifier))+}) + (Identifier) + ([]) + (Empty))+}) diff --git a/test/fixtures/ruby/if.diffB-A.txt b/test/fixtures/ruby/if.diffB-A.txt index ef5206d2f..52357478a 100644 --- a/test/fixtures/ruby/if.diffB-A.txt +++ b/test/fixtures/ruby/if.diffB-A.txt @@ -2,11 +2,16 @@ (If { (Identifier) ->(Identifier) } - {+(Identifier)+} - {+(Elsif + ( + {+(Identifier)+}) + { (Empty) + ->(If (Identifier) - (Identifier) - (Else - (Identifier)))+}) + ( + (Identifier)) + ( + (Identifier))) }) {-(If - (Identifier))-}) + (Identifier) + ([]) + (Empty))-}) diff --git a/test/fixtures/ruby/if.parseA.txt b/test/fixtures/ruby/if.parseA.txt index d5317d9dd..0fdda35c5 100644 --- a/test/fixtures/ruby/if.parseA.txt +++ b/test/fixtures/ruby/if.parseA.txt @@ -1,9 +1,11 @@ (Program (If (Identifier) - (Identifier) - (Elsif + ( + (Identifier)) + (If (Identifier) - (Identifier) - (Else + ( + (Identifier)) + ( (Identifier))))) diff --git a/test/fixtures/ruby/if.parseB.txt b/test/fixtures/ruby/if.parseB.txt index 4d8e40b89..cf31ff1f9 100644 --- a/test/fixtures/ruby/if.parseB.txt +++ b/test/fixtures/ruby/if.parseB.txt @@ -1,5 +1,9 @@ (Program (If - (Identifier)) + (Identifier) + ([]) + (Empty)) (If - (Identifier))) + (Identifier) + ([]) + (Empty)))