From f15ac0c5bef0d45cf2a5778b1af5b1e0783f8527 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Mon, 14 Dec 2009 18:05:39 +0000 Subject: [PATCH] * Add test for import/export of area --- ruby/t/tc_canvas.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ruby/t/tc_canvas.rb b/ruby/t/tc_canvas.rb index faca369..767c50a 100644 --- a/ruby/t/tc_canvas.rb +++ b/ruby/t/tc_canvas.rb @@ -28,6 +28,8 @@ class TC_Canvas < Test::Unit::TestCase def test_import @c.import_from_memory("foo", "") assert_equal("foo\r\n", @c.export_to_memory("irc"), "Import/Export failed") + @c.import_area_from_memory(0, 0, "p", "") + assert_equal("poo\r\n", @c.export_area_to_memory(0, 0, 3, 1, "irc"), "Import/Export of area failed") end def test_cursor @c.gotoxy(1,1)