[chronojump] Added an R file: test-null-values.R



commit 3632d1f996c2aa187e9b23864f13f23599adef54
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Jun 8 11:52:38 2022 +0200

    Added an R file: test-null-values.R

 encoder/tests/test-null-values.R | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
---
diff --git a/encoder/tests/test-null-values.R b/encoder/tests/test-null-values.R
new file mode 100644
index 000000000..99e391fd1
--- /dev/null
+++ b/encoder/tests/test-null-values.R
@@ -0,0 +1,26 @@
+returnsNullList <- function ()
+{
+       ecc = NULL
+       iso = NULL
+       notNullScalar = 5
+       notNullVector = c(9,4,7)
+       con = NULL
+
+       return (list(ecc=ecc, iso=iso,
+                               notNullScalar=notNullScalar,
+                               notNullVector=notNullVector,
+                               con=con))
+}
+
+myValues = returnsNullList ()
+print ("ecc:")
+print (myValues$ecc)
+print ("iso:")
+print (myValues$iso)
+print ("notNullScalar:")
+print (myValues$notNullScalar)
+print ("notNullVector:")
+print (myValues$notNullVector)
+print ("con:")
+print (myValues$con)
+


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