summaryrefslogtreecommitdiffstats
path: root/examples/BasicTests.qml
blob: 99fdd11360d7e271b105da7cd3a3496e87565c2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import Qt 4.7
import QtTest 1.0

TestCase {
    name: "BasicTests"

    function test_pass() {
        compare(2 + 2, 4, "2 + 2")
    }

    function test_fail() {
        compare(2 + 2, 5, "2 + 2")
    }

    function test_skip() {
        skip("skipping")
    }

    function test_expecting() {
        expectFail("this is the fail we wanted")
        verify(false)
    }
}