Ignore:
Timestamp:
Nov 17, 2007, 10:25:31 AM (12 years ago)
Author:
Pascal Terjan
Message:
  • Improve type checking of arguments
File:
1 edited

Legend:

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

    r1995 r2004  
    5151        assert_not_nil(c.render(f, c.width*f.width, c.height*f.height, c.width*f.width*4))
    5252    end
     53    def test_fail_render
     54        c = Cucul::Canvas.new(4,4)
     55        assert_raise(ArgumentError) {
     56            c.render(nil, c.width, c.height, c.width*4)
     57        }
     58    end
    5359end
Note: See TracChangeset for help on using the changeset viewer.