Changeset 3483 for libcaca/trunk


Ignore:
Timestamp:
May 19, 2009, 10:42:34 PM (11 years ago)
Author:
Sam Hocevar
Message:

Fix a ruby unit test that made wrong use of Caca::Display.driver_list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/ruby/t/tc_display.rb

    r2825 r3483  
    33class TC_Canvas < Test::Unit::TestCase
    44    def test_create
    5         d = Caca::Display.new
     5        d = Caca::Display.new()
    66        assert_not_nil(d, 'Display creation failed')
    77    end
     
    1111    end
    1212    def test_create_wrong_args
     13        c = Caca::Canvas.new(3, 3)
    1314        assert_raise(RuntimeError){Caca::Display.new("plop")}
    14         driver = Caca::Display.driver_list[0]
    15         assert_raise(ArgumentError){Caca::Display.new(driver, driver)}
    16         c = Caca::Canvas.new(3, 3)
     15        assert_raise(RuntimeError){Caca::Display.new(c, "plop")}
     16        assert_raise(ArgumentError){Caca::Display.new("plop", "plop")}
    1717        assert_raise(ArgumentError){Caca::Display.new(c, c)}
    1818    end
Note: See TracChangeset for help on using the changeset viewer.