2025-04-03 01:35:46 +00:00
|
|
|
/*
|
|
|
|
|
* 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"
|
|
|
|
|
|
2025-05-10 03:23:46 +00:00
|
|
|
#include "base/XBase.h"
|
2025-04-03 01:35:46 +00:00
|
|
|
|
|
|
|
|
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)
|