mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
17 lines
380 B
C++
17 lines
380 B
C++
|
|
#include "storm/Queue.hpp"
|
||
|
|
#include "test/Test.hpp"
|
||
|
|
|
||
|
|
struct TestPriority : TSTimerPriority<uint32_t> {
|
||
|
|
};
|
||
|
|
|
||
|
|
struct TestElement {
|
||
|
|
TestPriority m_priority;
|
||
|
|
};
|
||
|
|
|
||
|
|
TEST_CASE("TSPriorityQueue", "[queue]") {
|
||
|
|
SECTION("constructs correctly") {
|
||
|
|
auto queue = TSPriorityQueue<TestElement>(offsetof(TestElement, m_priority));
|
||
|
|
REQUIRE(queue.Dequeue() == nullptr);
|
||
|
|
}
|
||
|
|
}
|