34 #include <gtest/gtest.h> 44 EXPECT_EQ(c, test_letter);
65 std::string expected =
"EACBD";
66 for (
unsigned int i = 0; i < expected.size(); i++)
81 std::string expected =
"ACB";
82 for (
unsigned int i = 0; i < expected.size(); i++)
114 int main(
int argc,
char **argv)
116 testing::InitGoogleTest(&argc, argv);
117 return RUN_ALL_TESTS();
int main(int argc, char **argv)
item_t & front()
Return the item at the front of the queue.
TEST(MapBasedQueue, emptyQueue)
void enqueue(const double priority, item_t item)
Add a new item to the queue with a set priority.
void letter_test(MapBasedQueue< char > &q, const char test_letter)
void pop()
Remove (and destroy) the item at the front of the queue.
Templatized interface for a priority queue.
bool isEmpty()
Check to see if there is anything in the queue.