Skip to content
Snippets Groups Projects
Commit b0780716 authored by darkwindyclover's avatar darkwindyclover
Browse files

lab 7 fix

parent 3b3d565f
No related merge requests found
Pipeline #6102 passed with warnings with stages
in 7 minutes and 18 seconds
......@@ -21,23 +21,23 @@ namespace SimpleLang.Visitors
public override void VisitAssignNode(AssignNode a)
{
if (inCycle != 0)
return;
totalOpCount++;
if (inCycle > 0)
totalOpCount++;
return;
}
public override void VisitVarDefNode(VarDefNode w)
{
if (inCycle != 0)
return;
totalOpCount++;
if (inCycle > 0)
totalOpCount++;
return;
}
public override void VisitWriteNode(WriteNode w)
{
if (inCycle != 0)
return;
totalOpCount++;
if (inCycle > 0)
totalOpCount++;
return;
}
public override void VisitCycleNode(CycleNode c)
......
......@@ -20,7 +20,7 @@ namespace TestVisitors
}
[TestFixture]
[Ignore("This test is disabled")]
//[Ignore("This test is disabled")]
public class TestAvgOpCount: ParserTest
{
[Test]
......@@ -72,7 +72,7 @@ namespace TestVisitors
}
[TestFixture]
[Ignore("This test is disabled")]
//[Ignore("This test is disabled")]
public class TestCommonVariable: ParserTest
{
[Test]
......@@ -97,7 +97,7 @@ namespace TestVisitors
}
[TestFixture]
[Ignore("This test is disabled")]
//[Ignore("This test is disabled")]
public class TestExprComplexity: ParserTest
{
[Test]
......@@ -202,7 +202,7 @@ namespace TestVisitors
}
[TestFixture]
[Ignore("This test is disabled")]
//[Ignore("This test is disabled")]
public class TestIfCycleNest: ParserTest
{
[Test]
......
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