Last change
on this file since 1963 was
1949,
checked in by Pascal Terjan, 13 years ago
|
- Add a first test for Ruby binding
|
File size:
493 bytes
|
Line | |
---|
1 | require 'test/unit' |
---|
2 | require 'cucul' |
---|
3 | |
---|
4 | class TC_Frame < Test::Unit::TestCase |
---|
5 | def setup |
---|
6 | @c = Cucul::Canvas.new(3, 3) |
---|
7 | end |
---|
8 | def test_create |
---|
9 | f = @c.create_frame(1) |
---|
10 | assert(f, 'Frame creation failed') |
---|
11 | @c.free_frame(1) |
---|
12 | end |
---|
13 | def test_name |
---|
14 | f = @c.create_frame(1) |
---|
15 | assert(@c.frame_name, 'Failed to get frame name') |
---|
16 | @c.frame_name="test" |
---|
17 | assert(@c.frame_name == "test", 'Failed to set frame name') |
---|
18 | @c.free_frame(1) |
---|
19 | end |
---|
20 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.