~ubuntu-branches/ubuntu/raring/libcaca/raring

« back to all changes in this revision

Viewing changes to ruby/t/tc_font.rb

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar (Debian packages)
  • Date: 2007-11-25 19:08:40 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20071125190840-3r4k9nkxsyo7m3ck
Tags: 0.99.beta13b-1
* New upstream release.

* debian/control:
  + Do not build-depend on the whole texlive suite, but on more fine-grained
    packages. Thanks to Norbert Preining for the hints (latex -recorder, then
    inspect the .fls file).
* Ship libcaca++, libcucul++ and their development files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
require 'test/unit'
 
2
require 'cucul'
 
3
 
 
4
class TC_Canvas < Test::Unit::TestCase
 
5
    def test_list
 
6
        assert_not_nil(Cucul::Font.list)
 
7
    end
 
8
    def test_load
 
9
        Cucul::Font.list.each{|f|
 
10
                font = Cucul::Font.new(f)
 
11
                assert_not_nil(font)
 
12
                assert_not_nil(font.width)
 
13
                assert_not_nil(font.height)
 
14
                assert_not_nil(font.blocks)
 
15
        }
 
16
    end
 
17
    def test_fail_load
 
18
        assert_raise(RuntimeError) {
 
19
                Cucul::Font.new("This font should not exist")
 
20
        }
 
21
    end
 
22
end