Changeset 2822 for libcaca/trunk/ruby/t/tc_font.rb
- Timestamp:
- Sep 27, 2008, 4:11:36 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/ruby/t/tc_font.rb
r1995 r2822 1 1 require 'test/unit' 2 require 'c ucul'2 require 'caca' 3 3 4 4 class TC_Canvas < Test::Unit::TestCase 5 5 def test_list 6 assert_not_nil(C ucul::Font.list)6 assert_not_nil(Caca::Font.list) 7 7 end 8 8 def test_load 9 C ucul::Font.list.each{|f|10 font = C ucul::Font.new(f)9 Caca::Font.list.each{|f| 10 font = Caca::Font.new(f) 11 11 assert_not_nil(font) 12 12 assert_not_nil(font.width) … … 17 17 def test_fail_load 18 18 assert_raise(RuntimeError) { 19 C ucul::Font.new("This font should not exist")19 Caca::Font.new("This font should not exist") 20 20 } 21 21 end
Note: See TracChangeset
for help on using the changeset viewer.