Methods

Class/Module Index [+]

Quicksearch

TestGdkColor

Public Instance Methods

test_to_s() click to toggle source
# File gtk2/test/test_gdk_color.rb, line 2
def test_to_s
  color = Gdk::Color.new(0xffff, 0x1234, 0xabcd)
  if Gtk.check_version?(2, 12, 0)
    assert_equal("#ffff1234abcd", color.to_s)
  else
    assert_match(/\A#<Gdk::Color:.*>\z/, color.to_s)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.