/* Verifies push a data in the full stack.  */
ZTEST(stack_fail, test_stack_push_full)
/* Verifies push a data in the full stack.  */
ZTEST(stack_fail, test_stack_push_full)
{
	stack_data_t tx_data[STACK_LEN] = {0};
	stack_data_t data_tmp = 0;
	k_stack_init(&stack, data, STACK_LEN);
	for (int i = 0; i < STACK_LEN; i++) {
		zassert_true(k_stack_push(&stack, tx_data[i]) == 0, "push data into stack failed");
	}
	zassert_true(k_stack_push(&stack, data_tmp) == -ENOMEM, "push data successful");
}