Skip to content

Commit

Permalink
Fix up unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
linas committed May 29, 2015
1 parent a37867b commit 9b9dfda
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/atoms/AssignUTest.cxxtest
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ void AssignUTest::testInsert()

TS_ASSERT(as.getSize() == 6);

// Arghh. The cast should have been enough, but we curretnly
// can't store these in the atomsapce, due to circular shared
// lib dependencies.
InsertLinkPtr alp = InsertLinkCast(hna);
if (NULL == alp)
alp = createInsertLink(*LinkCast(hna));
TS_ASSERT(alp != NULL);

alp->execute(&as);
Expand Down Expand Up @@ -131,6 +136,8 @@ void AssignUTest::testRemove()
TS_ASSERT(as.getSize() == 1+4+4+4+2);

RemoveLinkPtr rlp = RemoveLinkCast(hna);
if (NULL == rlp)
rlp = createRemoveLink(*LinkCast(hna));
TS_ASSERT(rlp != NULL);

rlp->execute(&as);
Expand Down Expand Up @@ -184,6 +191,8 @@ void AssignUTest::testAssign()
TS_ASSERT(evhs.size() == 3);

AssignLinkPtr rlp = AssignLinkCast(hna);
if (NULL == rlp)
rlp = createAssignLink(*LinkCast(hna));
TS_ASSERT(rlp != NULL);

rlp->execute(&as);
Expand Down

0 comments on commit 9b9dfda

Please sign in to comment.