/* This file is part of KDDockWidgets. SPDX-FileCopyrightText: 2019 Klarälvdalens Datakonsult AB, a KDAB Group company Author: Sérgio Martins SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only Contact KDAB at for commercial licensing options. */ #include "../simple_test_framework.h" #include "core/Platform.h" #include "core/Group.h" #include "core/Stack.h" using namespace KDDockWidgets; KDDW_QCORO_TASK tst_stackCtor() { Core::Group group(nullptr, {}); Core::Stack stack(&group, {}); CHECK(stack.view()->is(Core::ViewType::Stack)); CHECK(stack.view()->asWrapper()->is(Core::ViewType::Stack)); KDDW_TEST_RETURN(true); } static const auto s_tests = std::vector { TEST(tst_stackCtor) }; #include "../tests_main.h"