reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/ADT/PriorityWorklistTest.cpp
   78   ASSERT_TRUE(W.insert(2));
   79   ASSERT_TRUE(W.insert(4));
   80   ASSERT_TRUE(W.insert(7));
   83   W.insert(std::vector<int>({42, 13, 42, 7, 8}));
   84   EXPECT_EQ(8, W.pop_back_val());
   85   EXPECT_EQ(7, W.pop_back_val());
   86   EXPECT_EQ(42, W.pop_back_val());
   87   EXPECT_EQ(13, W.pop_back_val());
   88   EXPECT_EQ(4, W.pop_back_val());
   89   EXPECT_EQ(2, W.pop_back_val());
   90   ASSERT_TRUE(W.empty());
   93   ASSERT_TRUE(W.insert(2));
   94   ASSERT_TRUE(W.insert(7));
   96   W.insert(std::list<int>({7, 5}));
   97   EXPECT_EQ(5, W.pop_back_val());
   98   EXPECT_EQ(7, W.pop_back_val());
   99   EXPECT_EQ(2, W.pop_back_val());
  100   ASSERT_TRUE(W.empty());
  102   ASSERT_TRUE(W.insert(2));
  103   ASSERT_TRUE(W.insert(7));
  106   W.insert(A);
  107   EXPECT_EQ(5, W.pop_back_val());
  108   EXPECT_EQ(7, W.pop_back_val());
  109   EXPECT_EQ(2, W.pop_back_val());
  110   ASSERT_TRUE(W.empty());
  112   ASSERT_TRUE(W.insert(2));
  113   ASSERT_TRUE(W.insert(7));
  115   W.insert(std::vector<int>());
  116   EXPECT_EQ(7, W.pop_back_val());
  117   EXPECT_EQ(2, W.pop_back_val());
  118   ASSERT_TRUE(W.empty());