class TestAttribute

Public Instance Methods

setup() click to toggle source
# File pango/test/test-attribute.rb, line 4
def setup
  @attribute = Pango::AttrLanguage.new(Pango::Language.default)
end
test_end_index() click to toggle source
# File pango/test/test-attribute.rb, line 14
def test_end_index
  assert_equal(GLib::MAXUINT, @attribute.end_index)
  @attribute.end_index = 5
  assert_equal(5, @attribute.end_index)
end
test_start_index() click to toggle source
# File pango/test/test-attribute.rb, line 8
def test_start_index
  assert_equal(0, @attribute.start_index)
  @attribute.start_index = 5
  assert_equal(5, @attribute.start_index)
end