25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- require 'caca'
-
- class TC_Canvas < MiniTest::Test
- def test_list
- refute_nil(Caca::Font.list)
- end
- def test_load
- Caca::Font.list.each{|f|
- font = Caca::Font.new(f)
- refute_nil(font)
- refute_nil(font.width)
- refute_nil(font.height)
- refute_nil(font.blocks)
- }
- end
- def test_fail_load
- assert_raises(RuntimeError) {
- Caca::Font.new("This font should not exist")
- }
- end
- end
|