File: test-attribute.rb

package info (click to toggle)
ruby-gnome 4.3.4-1.0
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 22,316 kB
  • sloc: ruby: 55,217; ansic: 29,012; xml: 333; sh: 225; cpp: 45; makefile: 42
file content (19 lines) | stat: -rw-r--r-- 459 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class TestAttribute < Test::Unit::TestCase
  include PangoTestUtils

  def setup
    @attribute = Pango::AttrLanguage.new(Pango::Language.default)
  end

  def test_start_index
    assert_equal(0, @attribute.start_index)
    @attribute.start_index = 5
    assert_equal(5, @attribute.start_index)
  end

  def test_end_index
    assert_equal(GLib::MAXUINT, @attribute.end_index)
    @attribute.end_index = 5
    assert_equal(5, @attribute.end_index)
  end
end