Sha256: a156f5ae0e1fb2934bdd31607e678b64fbff0ee73640bde0703a17c43d96f70f
Contents?: true
Size: 619 Bytes
Versions: 2
Compression:
Stored size: 619 Bytes
Contents
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require 'test/unit' require 'wx' class AppReturnsFalseFromInit < Wx::App attr_reader :did_call_on_init, :the_app_name def on_init @did_call_on_init = true @the_app_name = self.get_app_name return false end end class TestApp < Test::Unit::TestCase def test_return_false_from_init o = AppReturnsFalseFromInit.new o.run assert(o.did_call_on_init, "didn't call on_init?") assert_equal("wxruby", o.the_app_name) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wxruby3-0.9.1-x64-mingw-ucrt | tests/testapp_noframe.rb |
wxruby3-0.9.0-x64-mingw-ucrt | tests/testapp_noframe.rb |