geopro/tests/render/test_qwt_smoke.cpp

11 lines
379 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <gtest/gtest.h>
#include <qwt_text.h>
// 冒烟:验证项目能编译 Qwt 头文件并链接 Qwt 静态库QwtText 为值类型,无需 QApplication
// 保障 Qwt 集成cmake/qwt.cmake + 官方 Qt6持续可用不回归。
TEST(QwtSmoke, LinksAgainstQwt) {
QwtText t(QStringLiteral("hello"));
EXPECT_EQ(t.text(), QStringLiteral("hello"));
}