Skip to content

Commit

Permalink
--correct rvalue test
Browse files Browse the repository at this point in the history
  • Loading branch information
selassje committed Jul 25, 2019
1 parent abf84c8 commit 763ec7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ namespace lfQueue
void basic_test(T&& a, T&& b)
{
lfQueue<int> queue;
queue.push(a);
queue.push(std::forward<T&&>(a));
EXPECT_EQ(queue.size(), 1);
EXPECT_EQ(queue.front(), a);
EXPECT_EQ(queue.back(), a);

queue.push(b);
queue.push(std::forward<T&&>(b));
EXPECT_EQ(queue.size(), 2);
EXPECT_EQ(queue.back(), b);
EXPECT_EQ(queue.front(), a);
Expand Down

0 comments on commit 763ec7c

Please sign in to comment.