[aravis] tests: test error value on expression evaluation.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] tests: test error value on expression evaluation.
- Date: Tue, 7 Aug 2012 08:03:17 +0000 (UTC)
commit feb80c37b3b2180efc7660d3aefac7de78f5c5d9
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Tue Aug 7 10:00:36 2012 +0200
tests: test error value on expression evaluation.
tests/evaluator.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/tests/evaluator.c b/tests/evaluator.c
index 22b9784..ae3167c 100644
--- a/tests/evaluator.c
+++ b/tests/evaluator.c
@@ -59,11 +59,15 @@ expression_test (ExpressionTestData *data)
ArvEvaluator *evaluator;
gint64 v_int64;
double v_double;
+ GError *error = NULL;
evaluator = arv_evaluator_new (data->expression);
- v_int64 = arv_evaluator_evaluate_as_int64 (evaluator, NULL);
- v_double = arv_evaluator_evaluate_as_double (evaluator, NULL);
+ v_int64 = arv_evaluator_evaluate_as_int64 (evaluator, &error);
+ g_assert (error == NULL);
+
+ v_double = arv_evaluator_evaluate_as_double (evaluator, &error);
+ g_assert (error == NULL);
g_assert_cmpint (v_int64, ==, data->result_int64);
g_assert_cmpfloat (v_double, ==, data->result_double);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]