/* (1) Enqueue data nodes. Dequeue and verify order of the data nodes from (1). Verify Tx Queue is empty.  */
ZTEST(tx_q, test_data)
/* (1) Enqueue data nodes. Dequeue and verify order of the data nodes from (1). Verify Tx Queue is empty.  */
ZTEST(tx_q, test_data)
{
	struct ull_tx_q tx_q;
	struct node_tx *node;
	struct node_tx nodes[SIZE] = { 0 };
	ull_tx_q_init(&tx_q);
	for (int i = 0U; i < SIZE; i++) {
		ull_tx_q_enqueue_data(&tx_q, &nodes[i]);
	}
	for (int i = 0U; i < SIZE; i++) {
		node = ull_tx_q_dequeue(&tx_q);
		zassert_equal_ptr(node, &nodes[i], NULL);
	}
	node = ull_tx_q_dequeue(&tx_q);
	zassert_equal_ptr(node, NULL, "");
}