Skip to content
Snippets Groups Projects
Unverified Commit a788d0b2 authored by Anton Bagliy's avatar Anton Bagliy Committed by GitHub
Browse files

Merge pull request #57 from czen/NikMozd-patch-1

LoopTreeTest fixed
parents 846beb81 d7e0fd5c
Branches
No related merge requests found
...@@ -158,14 +158,18 @@ namespace TestVisitors ...@@ -158,14 +158,18 @@ namespace TestVisitors
{ {
Parser p = Parse(@"begin var a6; Parser p = Parse(@"begin var a6;
cycle 2 cycle 2
begin
cycle 1 cycle 1
a6:=2; a6:=2;
cycle 3 cycle 3
cycle 5 cycle 5
begin
cycle 6 cycle 6
a6:=5; a6:=5;
cycle 4 cycle 4
write(5) write(5)
end
end
end"); end");
Assert.IsTrue(p.Parse()); Assert.IsTrue(p.Parse());
var loopCounter = new MaxNestCyclesVisitor(); var loopCounter = new MaxNestCyclesVisitor();
...@@ -208,4 +212,4 @@ namespace TestVisitors ...@@ -208,4 +212,4 @@ namespace TestVisitors
} }
} }
} }
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment