Skip to content

Commit

Permalink
[Test] Fix Unit Test
Browse files Browse the repository at this point in the history
  • Loading branch information
deunlee committed May 26, 2020
1 parent 3494c05 commit 29bf084
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions UnitTest/Queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ TEST_CLASS(Queue) {

Assert::IsTrue(q.enqueue(1));
Assert::IsTrue(q.enqueue(2));

Assert::IsFalse(q.enqueue(3));
}

Expand All @@ -50,7 +49,6 @@ TEST_CLASS(Queue) {
Assert::IsTrue(q.enqueue(2));
Assert::AreEqual(q.dequeue(), 1);
Assert::AreEqual(q.dequeue(), 2);

Assert::ExpectException<Deun::QueueError>([&] { q.dequeue(); });

try {
Expand Down
2 changes: 0 additions & 2 deletions UnitTest/Stack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ TEST_CLASS(Stack) {

Assert::IsTrue(s.push(1));
Assert::IsTrue(s.push(2));

Assert::IsFalse(s.push(3));
}

Expand All @@ -50,7 +49,6 @@ TEST_CLASS(Stack) {
Assert::IsTrue(s.push(2));
Assert::AreEqual(s.pop(), 2);
Assert::AreEqual(s.pop(), 1);

Assert::ExpectException<Deun::StackError>([&] { s.pop(); });

try {
Expand Down

0 comments on commit 29bf084

Please sign in to comment.