Ignore:
Timestamp:
Sep 27, 2008, 4:11:36 PM (12 years ago)
Author:
Sam Hocevar
Message:

Continuing the libcucul-libcaca merge.

File:
1 edited

Legend:

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

    r2004 r2822  
    11require 'test/unit'
    2 require 'cucul'
     2require 'caca'
    33
    44class TC_Canvas < Test::Unit::TestCase
    55    def setup
    6         @c = Cucul::Canvas.new(3, 3)
     6        @c = Caca::Canvas.new(3, 3)
    77    end
    88    def test_create
    9         c = Cucul::Canvas.new(3, 3)
     9        c = Caca::Canvas.new(3, 3)
    1010        assert_not_nil(c, 'Canvas creation failed')
    1111        assert(c.width == 3 && c.height == 3, 'Wrong size for new canvas')
     
    4646    end
    4747    def test_render
    48         c = Cucul::Canvas.new(4,4)
     48        c = Caca::Canvas.new(4,4)
    4949        c.put_str(0,0,"plop")
    50         f = Cucul::Font.new(Cucul::Font.list[0])
     50        f = Caca::Font.new(Caca::Font.list[0])
    5151        assert_not_nil(c.render(f, c.width*f.width, c.height*f.height, c.width*f.width*4))
    5252    end
    5353    def test_fail_render
    54         c = Cucul::Canvas.new(4,4)
     54        c = Caca::Canvas.new(4,4)
    5555        assert_raise(ArgumentError) {
    5656            c.render(nil, c.width, c.height, c.width*4)
Note: See TracChangeset for help on using the changeset viewer.