gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: test fallback


From: gnunet
Subject: [taler-merchant] branch master updated: test fallback
Date: Fri, 21 Aug 2020 13:11:32 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new fa24290  test fallback
fa24290 is described below

commit fa24290c5222d78238f8750c21a0004f0f0b6be5
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Fri Aug 21 16:41:27 2020 +0530

    test fallback
---
 src/mustach/test_mustach_jansson.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mustach/test_mustach_jansson.c 
b/src/mustach/test_mustach_jansson.c
index a211d87..ed49983 100644
--- a/src/mustach/test_mustach_jansson.c
+++ b/src/mustach/test_mustach_jansson.c
@@ -65,6 +65,9 @@ main (int argc,
   /* test 7 */
   char *t7 = "amount: {{ amt!amount_decimal }} {{ amt!amount_currency }}";
   char *x7 = "amount: 123.00 EUR";
+  /* test 8 */
+  char *t8 = "{{^ v4 }}fallback{{/ v4 }}";
+  char *x8 = "fallback";
 
   /* contract test 8 (contract) */
   char *tc = "summary: {{ summary!i18n }}";
@@ -73,6 +76,7 @@ main (int argc,
   char *xc_fr = "summary: FRANCAISE";
 
   json_object_set_new (root, "v1", json_string ("world"));
+  json_object_set_new (root, "v4", json_array ());
   json_array_append_new (arr, json_string ("foo"));
   json_array_append_new (arr, json_string ("bar"));
   json_object_set_new (root, "v2", arr);
@@ -98,6 +102,7 @@ main (int argc,
   assert_template (t5, root, x5);
   assert_template (t6, root, x6);
   assert_template (t7, root, x7);
+  assert_template (t8, root, x8);
 
   assert_template (tc, contract, xc_en);
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]