Class: MyFirstTest

Inherits:
Qt::Object show all
Defined in:
ext/ruby/qttest/examples/myfirsttest.rb

Instance Method Summary collapse

Methods inherited from Qt::Base

#%, #&, #*, #**, #+, #-, #-@, #/, #<, #<<, #<=, #==, #>, #>=, #>>, #QCOMPARE, #QEXPECT_FAIL, #QFAIL, #QSKIP, #QTEST, #QVERIFY, #QVERIFY2, #QWARN, #^, ancestors, #is_a?, #methods, private_slots, #protected_methods, #public_methods, q_classinfo, q_signal, q_slot, signals, #singleton_methods, slots, #|, #~

Instance Method Details

#cleanupTestCaseObject



25
26
27
# File 'ext/ruby/qttest/examples/myfirsttest.rb', line 25

def cleanupTestCase()
  qDebug("called after myFirstTest and mySecondTest")
end

#initTestCaseObject



11
12
13
# File 'ext/ruby/qttest/examples/myfirsttest.rb', line 11

def initTestCase()
  qDebug("called before everything else")
end

#myFirstTestObject



15
16
17
18
# File 'ext/ruby/qttest/examples/myfirsttest.rb', line 15

def myFirstTest()
  QVERIFY('1 == 1')
  qDebug("myFirstTest()")
end

#mySecondTestObject



20
21
22
23
# File 'ext/ruby/qttest/examples/myfirsttest.rb', line 20

def mySecondTest()
  QVERIFY('1 != 2')
  qDebug("mySecondTest()")
end