"Fossies" - the Fresh Open Source Software Archive

Member "libcaca-0.99.beta20/ruby/t/tc_frame.rb" (4 Dec 2015, 474 Bytes) of package /linux/privat/libcaca-0.99.beta20.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "tc_frame.rb": 0.99.beta19_vs_0.99.beta20.

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