File: tst_scxmlcoutput.cpp

package info (click to toggle)
qt6-scxml 6.9.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,772 kB
  • sloc: cpp: 28,750; javascript: 330; sh: 95; python: 78; makefile: 26
file content (25 lines) | stat: -rw-r--r-- 653 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include <QtTest>
#include <QObject>

// This testcase tests the cmake scxmlc generation, and the testcase itself
// does mere basic compilation & statemachine instantiation; these fail
// if qscxmlc generation does not work as expected
#include "ids1.h"

class tst_scxmlcoutput: public QObject
{
    Q_OBJECT
private slots:
    void instantiates();
};

void tst_scxmlcoutput::instantiates() {
    MyClass statemachine;
    QVERIFY(statemachine.property("foo.bar").isValid());
}

QTEST_MAIN(tst_scxmlcoutput)
#include "tst_scxmlcoutput.moc"