×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: abc def
Added: Oct 19, 2017 12:50 PM
Views: 3
Tags: test
test
  1.  
  2. TEST(STACKTEST, PeekTest) {
  3.     Stack s = Stack();
  4.     s.push(4);
  5.     ASSERT_EQ(4, s.peek());
  6.     ASSERT_EQ(4, s.peek());
  7.     s.push(3);
  8.     ASSERT_EQ(2, s.size());
  9. }