Codebase list ruby-fxruby / 3ac7152a-ab2f-4628-b250-ba7cef029b84/upstream/1.6.45+git20230116.1.57f414d test / TC_FXExtentf.rb
3ac7152a-ab2f-4628-b250-ba7cef029b84/upstream/1.6.45+git20230116.1.57f414d

Tree @3ac7152a-ab2f-4628-b250-ba7cef029b84/upstream/1.6.45+git20230116.1.57f414d (Download .tar.gz)

TC_FXExtentf.rb @3ac7152a-ab2f-4628-b250-ba7cef029b84/upstream/1.6.45+git20230116.1.57f414draw · history · blame

require 'test/unit'
require 'fox16'

class TC_FXExtentf < Test::Unit::TestCase
  include Fox

  def test_lower_always_returns_same_instance
    e = FXExtentf.new(0, 1, 0, 1)
    assert_same e.lower, e.lower
  end

  def test_upper_always_returns_same_instance
    e = FXExtentf.new(0, 1, 0, 1)
    assert_same e.upper, e.upper
  end

  def test_index_always_returns_same_instance
    e = FXExtentf.new(0, 1, 0, 1)
    assert_same e[0], e[0]
  end
end