Sha256: 648749491cbf764adf8b9a0a1a0efae8dbe57046f1ff7583ed55ef306f5fd986

Contents?: true

Size: 551 Bytes

Versions: 20

Compression:

Stored size: 551 Bytes

Contents

#!/usr/bin/ruby

require 'Qt4'
require 'qttest'

class MyFirstTest < Qt::Object
  private_slots :initTestCase, 
                :myFirstTest, :mySecondTest,
                :cleanupTestCase

  def initTestCase()
    qDebug("called before everything else")
  end 
  
  def myFirstTest()
    QVERIFY('1 == 1')
    qDebug("myFirstTest()")
  end

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

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

Qt::Test.qExec(MyFirstTest.new, ARGV)

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
rock-qtbindings-4.8.6.5 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.8.6.5 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.8.6.4 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.8.6.2 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.8.6.1 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.8.6.0 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.8.5.2 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.8.5.1 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.8.5.0 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.8.3.0-x86-mingw32 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.8.3.0 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.6.3.4-x86-mingw32 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.6.3.4 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.6.3.3 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.6.3.2-x86-mingw32 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.6.3.2 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.6.3.1 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.6.3.1-x86-mingw32 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.6.3.0 ext/ruby/qttest/examples/myfirsttest.rb
qtbindings-4.6.3.0-x86-mingw32 ext/ruby/qttest/examples/myfirsttest.rb