您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819
  1. require 'caca'
  2. class TC_Frame < MiniTest::Test
  3. def setup
  4. @c = Caca::Canvas.new(3, 3)
  5. end
  6. def test_create
  7. f = @c.create_frame(1)
  8. assert(f, 'Frame creation failed')
  9. @c.free_frame(1)
  10. end
  11. def test_name
  12. f = @c.create_frame(1)
  13. assert(@c.frame_name, 'Failed to get frame name')
  14. @c.frame_name="test"
  15. assert(@c.frame_name == "test", 'Failed to set frame name')
  16. @c.free_frame(1)
  17. end
  18. end