Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Maiboroda <[email protected]>
  • Loading branch information
chfast and gumb0 authored May 22, 2020
1 parent b9d3064 commit d9fb91a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unittests/stack_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ TEST(operand_stack, rbegin_rend)
TEST(operand_stack, to_vector)
{
OperandStack stack(3);
EXPECT_TRUE(std::vector(stack.rbegin(), stack.rend()).empty());
EXPECT_THAT(std::vector(stack.rbegin(), stack.rend()), IsEmpty());

stack.push(1);
stack.push(2);
stack.push(3);

EXPECT_EQ(std::vector(stack.rbegin(), stack.rend()), (std::vector<uint64_t>{1, 2, 3}));
EXPECT_THAT(std::vector(stack.rbegin(), stack.rend()), ElementsAre(1, 2, 3));
}

0 comments on commit d9fb91a

Please sign in to comment.