Skip to content

Commit

Permalink
Test that for loop issue is fixed
Browse files Browse the repository at this point in the history
Closes #66
  • Loading branch information
peterwvj committed Jan 30, 2017
1 parent fa70d8c commit 8d13506
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ TEST(Expression_Seq, forseq)
{
CHECK(CLASS_ExpressionForLoop__Z6forseqEV);
}

TEST(Expression_Seq, testSumOneToFive)
{
CHECK(CLASS_ExpressionForLoop__Z16testSumOneToFiveEV);
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ forseq()==(
return tmp=10;
);

public testSumOneToFive : () ==> bool
testSumOneToFive () ==
(
dcl res : nat := 0;
for i = 1 to 5 do
res := res + i;
return res = 15;
);


/*

TVP col = newSet/seqvar(4,1,2,3,4);
Expand Down

0 comments on commit 8d13506

Please sign in to comment.