29 lines
577 B
C++
29 lines
577 B
C++
|
|
/*
|
||
|
|
* Deskflow -- mouse and keyboard sharing utility
|
||
|
|
* SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
|
||
|
|
* SPDX-FileCopyrightText: (C) 2014 - 2021 Symless Ltd.
|
||
|
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include "XBaseTests.h"
|
||
|
|
|
||
|
|
#include "../../lib/base/XBase.h"
|
||
|
|
|
||
|
|
void XBaseTests::empty()
|
||
|
|
{
|
||
|
|
XBase xbase;
|
||
|
|
const char *result = xbase.what();
|
||
|
|
|
||
|
|
QCOMPARE(result, "");
|
||
|
|
}
|
||
|
|
|
||
|
|
void XBaseTests::nonEmpty()
|
||
|
|
{
|
||
|
|
XBase xbase("test");
|
||
|
|
const char *result = xbase.what();
|
||
|
|
|
||
|
|
QCOMPARE(result, "test");
|
||
|
|
}
|
||
|
|
|
||
|
|
QTEST_MAIN(XBaseTests)
|