[gegl] test-serialize; reindent
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] test-serialize; reindent
- Date: Thu, 21 Apr 2016 20:22:05 +0000 (UTC)
commit 626c1a4bbe482a95c47e61450a6096a57ab88dd4
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Apr 21 21:21:19 2016 +0100
test-serialize; reindent
tests/simple/test-serialize.c | 85 +++++++++++++++++++++++++++++++---------
1 files changed, 66 insertions(+), 19 deletions(-)
---
diff --git a/tests/simple/test-serialize.c b/tests/simple/test-serialize.c
index ebd83f7..59ea347 100644
--- a/tests/simple/test-serialize.c
+++ b/tests/simple/test-serialize.c
@@ -29,34 +29,81 @@ typedef struct TestCase {
} TestCase;
TestCase tests[] = {
- {"invert", "gegl:invert-linear", ""},
- {"invert a=b", "gegl:invert-linear", "gegl:invert has no a property."},
- {"invert a=c", "gegl:invert-linear", "gegl:invert has no a property."},
- {"gaussian-blur", "gegl:gaussian-blur", ""},
- {"over aux=[ text string='foo bar' ]", "svg:src-over aux=[ gegl:text string='foo bar' width=35
height=11 ]", ""},
- {"over aux=[text string='foo bar' ]", "svg:src-over aux=[ gegl:text string='foo bar' width=35
height=11 ]", ""},
- {"over aux= [ ", "svg:src-over", "No such op 'gegl:['"},
+ {"invert",
+ "gegl:invert-linear",
+ ""},
+
+ {"invert a=b",
+ "gegl:invert-linear",
+ "gegl:invert has no a property."},
+
+ {"invert a=c",
+ "gegl:invert-linear",
+ "gegl:invert has no a property."},
+
+ {"gaussian-blur",
+ "gegl:gaussian-blur",
+ ""},
+
+ {"over aux=[ text string='foo bar' ]",
+ "svg:src-over aux=[ gegl:text string='foo bar' width=35 height=11 ]",
+ ""},
+
+ {"over aux=[text string='foo bar' ]",
+ "svg:src-over aux=[ gegl:text string='foo bar' width=35 height=11 ]",
+ ""},
+
+ {"over aux= [ ",
+ "svg:src-over",
+ "No such op 'gegl:['"},
+
/* the following cause undesired warnings on console */
- {"over aux=[ string='foo bar' ]", "svg:src-over", ""},
+ {"over aux=[ string='foo bar' ]",
+ "svg:src-over",
+ ""},
+
/* the following should have error message */
- {"over aux=[ ", "svg:src-over", ""},
- {"over aux=[ ]", "svg:src-over", ""},
- {"exposure foo=2","gegl:exposure","gegl:exposure has no foo property, properties: 'exposure', 'offset',
'gamma', "},
+ {"over aux=[ ",
+ "svg:src-over",
+ ""},
+
+ {"over aux=[ ]",
+ "svg:src-over",
+ ""},
+
+ {"exposure foo=2",
+ "gegl:exposure",
+ "gegl:exposure has no foo property, properties: 'exposure', 'offset', 'gamma', "},
+
+ {"over aux=[text string='foo bar']",
+ "svg:src-over aux=[ gegl:text string='foo bar' width=35 height=11 ]",
+ ""},
+ {"over aux=[ load path=/ ]",
+ "svg:src-over aux=[ gegl:load path='/' ]",
+ ""},
- {"over aux=[text string='foo bar']", "svg:src-over aux=[ gegl:text string='foo bar' width=35
height=11 ]", ""},
- {"over aux=[ load path=/ ]", "svg:src-over aux=[ gegl:load path='/' ]", ""},
- {"inver", "", "No such op 'gegl:inver' suggestions: gegl:invert-gamma gegl:invert-linear"},
+ {"inver",
+ "",
+ "No such op 'gegl:inver' suggestions: gegl:invert-gamma gegl:invert-linear"},
- {"over aux=[ load path=/abc ]", "svg:src-over aux=[ gegl:load path='/abc' ]", ""},
+ {"over aux=[ load path=/abc ]",
+ "svg:src-over aux=[ gegl:load path='/abc' ]",
+ ""},
+ {"id=foo over aux=[ ref=foo invert ]",
+ "id=foo svg:src-over aux=[ ref=foo gegl:invert-linear ]",
+ ""},
- {"id=foo over aux=[ ref=foo invert ]", "id=foo svg:src-over aux=[ ref=foo gegl:invert-linear ]", ""},
- {"id=bar id=foo over aux=[ ref=foo invert ]", "id=foo svg:src-over aux=[ ref=foo gegl:invert-linear ]",
""},
+ {"id=bar id=foo over aux=[ ref=foo invert ]",
+ "id=foo svg:src-over aux=[ ref=foo gegl:invert-linear ]",
+ ""},
- {"over aux=[ text string={ 0='foo bar' } ]", "svg:src-over aux=[ gegl:text string='foo bar' width=35
height=11 ]", ""},
+ {"over aux=[ text string={ 0='foo bar' } ]",
+ "svg:src-over aux=[ gegl:text string='foo bar' width=35 height=11 ]",
+ ""},
- {NULL, NULL}
+ {NULL, NULL, NULL}
};
static int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]