]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/test/qt5/qtscxml.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / test / qt5 / qtscxml.cpp
CommitLineData
7c673cae
FG
1// (c) Copyright Juergen Hunold 2016
2// Use, modification and distribution is subject to the Boost Software
1e59de90
TL
3// License, Version 1.0. (See accompanying file LICENSE.txt or copy at
4// https://www.bfgroup.xyz/b2/LICENSE.txt)
7c673cae
FG
5
6#define BOOST_TEST_MODULE QtScxml
7
8#include <QtScxml>
9
10#include <boost/test/unit_test.hpp>
11
12BOOST_AUTO_TEST_CASE( defines)
13{
14 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_CORE_LIB), true);
15 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_SCXML_LIB), true);
16}
17
18std::ostream&
19operator << (std::ostream& stream, QString const& string)
20{
21 stream << qPrintable(string);
22 return stream;
23}
24
25/*!
26 */
27BOOST_AUTO_TEST_CASE( scxml )
28{
29 QString sessionId = QScxmlStateMachine::generateSessionId(QStringLiteral("dummy"));
30
31 BOOST_TEST(sessionId.isEmpty() == false);
32 BOOST_TEST(sessionId == QString{"dummy1"});
33}