aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/unit_test/mixed_atp/tests/auto/quickauto2/tst_test2.qml
blob: a9cd7826ade2bac66fd348b4e33333db0c17bf74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
import QtQuick 2.0
import QtTest 1.0

Rectangle {
    TestCase {
        name: "nestedTC"

        function test_str() {
            var bla = String();
            bla = bla.concat("Hello", " ", "World");
            var blubb = String("Hello World");
            compare(blubb, bla, "Comparing concat");
            verify(blubb == bla, "Comparing concat equality")
        }
    }
}