This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-repoinit-parser.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a404c4  Add test for a double property
0a404c4 is described below

commit 0a404c4fc81c7cb9d2d083cacf5925b506285023
Author: Bertrand Delacretaz <[email protected]>
AuthorDate: Mon Mar 29 13:00:27 2021 +0200

    Add test for a double property
---
 src/test/resources/testcases/test-67-output.txt | 1 +
 src/test/resources/testcases/test-67.txt        | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/test/resources/testcases/test-67-output.txt 
b/src/test/resources/testcases/test-67-output.txt
index 76ae32c..6598459 100644
--- a/src/test/resources/testcases/test-67-output.txt
+++ b/src/test/resources/testcases/test-67-output.txt
@@ -2,6 +2,7 @@ SetProperties on /pathA /path/B
   PropertyLine sling:ResourceType{String}=[{String}/x/y/z]
   PropertyLine cq:allowedTemplates{String}=[{String}/d/e/f/*, {String}m/n/*]
   PropertyLine default someInteger{Long}=[{Long}42]
+  PropertyLine aDouble{Double}=[{Double}3.14]
   PropertyLine someFlag{Boolean}=[{Boolean}true]
   PropertyLine default 
someDate{Date}=[{GregorianCalendar}2020-03-19T11:39:33.437+05:30]
   PropertyLine customSingleValueStringProp{String}=[{String}test]
diff --git a/src/test/resources/testcases/test-67.txt 
b/src/test/resources/testcases/test-67.txt
index 5fc7358..c845a36 100644
--- a/src/test/resources/testcases/test-67.txt
+++ b/src/test/resources/testcases/test-67.txt
@@ -3,6 +3,7 @@ set properties on /pathA, /path/B
   set sling:ResourceType{String} to /x/y/z
   set cq:allowedTemplates to /d/e/f/*, m/n/*
   default someInteger{Long} to 42
+  set aDouble{Double} to 3.14
   set someFlag{Boolean} to true
   default someDate{Date} to "2020-03-19T11:39:33.437+05:30"
   set customSingleValueStringProp to test

Reply via email to