about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/javascript.scm18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/javascript.scm b/tests/javascript.scm
index 91b91bd..b0c6de0 100644
--- a/tests/javascript.scm
+++ b/tests/javascript.scm
@@ -46,6 +46,16 @@
   (evaluate-javascript-expression "$(null)"
                                   '()))
 
+(test-equal "evaluate true javascript expression"
+  #t
+  (evaluate-javascript-expression "$(true)"
+                                  '()))
+
+(test-equal "evaluate false javascript expression"
+  #f
+  (evaluate-javascript-expression "$(false)"
+                                  '()))
+
 (test-equal "evaluate parameter reference to JSON object"
   (canonicalize-json '(("class" . "File")
                        ("path" . "/foo/bar")))
@@ -81,6 +91,14 @@
   ''null
   (gexp->sexp-rec (evaluate-javascript-expression "$(null)")))
 
+(test-equal "evaluate true javascript expression with node"
+  '#t
+  (gexp->sexp-rec (evaluate-javascript-expression "$(true)")))
+
+(test-equal "evaluate false javascript expression with node"
+  '#f
+  (gexp->sexp-rec (evaluate-javascript-expression "$(false)")))
+
 (test-equal "evaluate parameter reference to JSON object using node"
   '(json-ref inputs "fasta")
   (gexp->sexp-rec