Ignore:
Timestamp:
Nov 16, 2007, 11:24:35 PM (12 years ago)
Author:
Pascal Terjan
Message:
  • Add Cucul::Font
Location:
libcaca/trunk/ruby/t
Files:
1 added
1 edited

Legend:

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

    r1966 r1995  
    4545        assert_equal(42, @c.get_char(1,1))
    4646    end
     47    def test_render
     48        c = Cucul::Canvas.new(4,4)
     49        c.put_str(0,0,"plop")
     50        f = Cucul::Font.new(Cucul::Font.list[0])
     51        assert_not_nil(c.render(f, c.width*f.width, c.height*f.height, c.width*f.width*4))
     52    end
    4753end
Note: See TracChangeset for help on using the changeset viewer.