File: tc_frame.rb

package info (click to toggle)
libcaca 0.99.beta14-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 6,720 kB
  • ctags: 2,334
  • sloc: ansic: 18,652; cs: 1,171; objc: 835; cpp: 741; makefile: 446; sh: 289; python: 215; ruby: 190; asm: 93
file content (20 lines) | stat: -rw-r--r-- 493 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'test/unit'
require 'cucul'

class TC_Frame < Test::Unit::TestCase
	def setup
		@c = Cucul::Canvas.new(3, 3)
	end
	def test_create
	      f = @c.create_frame(1)
              assert(f, 'Frame creation failed')
	      @c.free_frame(1)
        end
        def test_name
	     f = @c.create_frame(1)
	     assert(@c.frame_name, 'Failed to get frame name')
	     @c.frame_name="test"
	     assert(@c.frame_name == "test", 'Failed to set frame name')
	     @c.free_frame(1)
        end
end