File: test-attribute.rb

package info (click to toggle)
ruby-gnome 4.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,648 kB
  • sloc: ruby: 67,701; ansic: 67,431; xml: 350; sh: 201; cpp: 45; makefile: 42
file content (19 lines) | stat: -rw-r--r-- 459 bytes parent folder | download | duplicates (12)
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