From d7e0fd5c1a17ab8076524ab325b8a9e8b63522be Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B9=20=D0=9C=D0=BE?=
 =?UTF-8?q?=D0=B7=D0=B4=D0=BE=D1=80=D0=BE=D0=B2?= <mozdorov@yandex.ru>
Date: Thu, 25 Oct 2018 16:48:12 +0300
Subject: [PATCH] LoopTreeTest fixed

---
 TestVisitors/Tests.cs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/TestVisitors/Tests.cs b/TestVisitors/Tests.cs
index 8485ce9..b54157c 100644
--- a/TestVisitors/Tests.cs
+++ b/TestVisitors/Tests.cs
@@ -158,14 +158,18 @@ namespace TestVisitors
             {
                 Parser p = Parse(@"begin var a6; 
                                                     cycle 2 
+                                                    begin
                                                         cycle 1 
                                                             a6:=2; 
                                                         cycle 3 
                                                             cycle 5 
+                                                            begin
                                                                 cycle 6 
                                                                     a6:=5; 
                                                                 cycle 4 
                                                                     write(5) 
+                                                            end
+                                                    end
                                               end");
                 Assert.IsTrue(p.Parse());
                 var loopCounter = new MaxNestCyclesVisitor();
@@ -208,4 +212,4 @@ namespace TestVisitors
         }
     }
 
-}
\ No newline at end of file
+}
-- 
GitLab