"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ruby/t/tc_frame.rb" between
libcaca-0.99.beta19.tar.gz and libcaca-0.99.beta20.tar.bz2

About: libcaca is a graphics library that outputs text instead of pixels, so that it can work on older video cards or text terminals (something like an advanced AAlib library).

tc_frame.rb  (libcaca-0.99.beta19):tc_frame.rb  (libcaca-0.99.beta20.tar.bz2)
require 'caca' require 'caca'
class TC_Frame < Test::Unit::TestCase class TC_Frame < MiniTest::Test
def setup def setup
@c = Caca::Canvas.new(3, 3) @c = Caca::Canvas.new(3, 3)
end end
def test_create def test_create
f = @c.create_frame(1) f = @c.create_frame(1)
assert(f, 'Frame creation failed') assert(f, 'Frame creation failed')
@c.free_frame(1) @c.free_frame(1)
end end
def test_name def test_name
f = @c.create_frame(1) f = @c.create_frame(1)
assert(@c.frame_name, 'Failed to get frame name') assert(@c.frame_name, 'Failed to get frame name')
@c.frame_name="test" @c.frame_name="test"
assert(@c.frame_name == "test", 'Failed to set frame name') assert(@c.frame_name == "test", 'Failed to set frame name')
@c.free_frame(1) @c.free_frame(1)
end end
end end
 End of changes. 1 change blocks. 
16 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)