[gegl/soc-2011-warp] add 2 more test for gegl_buffer_dup (delete one after duplication)



commit 055906c6daa9c9c7747066d9cb810027a328d1d7
Author: Michael Murà <batolettre gmail com>
Date:   Tue Aug 2 11:22:23 2011 +0200

    add 2 more test for gegl_buffer_dup (delete one after duplication)

 .../reference/test_gegl_buffer_dup_delete1.buf     |   23 ++++++++++++++++++++
 .../reference/test_gegl_buffer_dup_delete2.buf     |   23 ++++++++++++++++++++
 tests/buffer/tests/test_gegl_buffer_dup_delete1.c  |   13 +++++++++++
 tests/buffer/tests/test_gegl_buffer_dup_delete2.c  |   13 +++++++++++
 4 files changed, 72 insertions(+), 0 deletions(-)
---
diff --git a/tests/buffer/reference/test_gegl_buffer_dup_delete1.buf b/tests/buffer/reference/test_gegl_buffer_dup_delete1.buf
new file mode 100644
index 0000000..0458d9d
--- /dev/null
+++ b/tests/buffer/reference/test_gegl_buffer_dup_delete1.buf
@@ -0,0 +1,23 @@
+Test: test_gegl_buffer_dup_delete1
+ââââââââââââââââââââââ
+â                    â
+â                    â
+â                    â
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
diff --git a/tests/buffer/reference/test_gegl_buffer_dup_delete2.buf b/tests/buffer/reference/test_gegl_buffer_dup_delete2.buf
new file mode 100644
index 0000000..958e86e
--- /dev/null
+++ b/tests/buffer/reference/test_gegl_buffer_dup_delete2.buf
@@ -0,0 +1,23 @@
+Test: test_gegl_buffer_dup_delete2
+ââââââââââââââââââââââ
+â                    â
+â                    â
+â                    â
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
+ââââââââââââââââââââââ
diff --git a/tests/buffer/tests/test_gegl_buffer_dup_delete1.c b/tests/buffer/tests/test_gegl_buffer_dup_delete1.c
new file mode 100644
index 0000000..c7e5d1d
--- /dev/null
+++ b/tests/buffer/tests/test_gegl_buffer_dup_delete1.c
@@ -0,0 +1,13 @@
+TEST ()
+{
+  GeglBuffer    *buffer, *buffer2;
+  GeglRectangle  bound = {0, 0, 20, 20};
+  test_start ();
+  buffer = gegl_buffer_new (&bound, babl_format ("Y float"));
+  vgrad (buffer);
+  buffer2 = gegl_buffer_dup (buffer);
+  gegl_buffer_destroy (buffer);
+  print_buffer (buffer2);
+  gegl_buffer_destroy (buffer2);
+  test_end ();
+}
diff --git a/tests/buffer/tests/test_gegl_buffer_dup_delete2.c b/tests/buffer/tests/test_gegl_buffer_dup_delete2.c
new file mode 100644
index 0000000..6a35ac0
--- /dev/null
+++ b/tests/buffer/tests/test_gegl_buffer_dup_delete2.c
@@ -0,0 +1,13 @@
+TEST ()
+{
+  GeglBuffer    *buffer, *buffer2;
+  GeglRectangle  bound = {0, 0, 20, 20};
+  test_start ();
+  buffer = gegl_buffer_new (&bound, babl_format ("Y float"));
+  vgrad (buffer);
+  buffer2 = gegl_buffer_dup (buffer);
+  gegl_buffer_destroy (buffer2);
+  print_buffer (buffer);
+  gegl_buffer_destroy (buffer);
+  test_end ();
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]