1 ;; Copying and distribution of this file, with or without
2 ;; modification, are permitted in any medium without royalty. This
3 ;; file is offered as-is, without any warranty.
5 (in-package #:ps-eval-tests
)
6 (named-readtables:in-readtable
:parenscript
)
8 (in-suite ps-test
::eval-tests
)
15 (< 123.12 123.123 123.124)
22 (test-js-eval statements-and-expressions-2
23 ((lambda () (if 1 2 3)))
26 (test-js-eval statements-and-expressions-1
27 ((lambda () (+ 2 (if 1 2 3))))
30 (test-js-eval empty-array
32 (js-array (make-array 0 :adjustable t
)))
34 (test-js-eval funargs-let1
41 (test-js-eval block-dynamic-return
42 (block nil
((lambda () (return))) (+ 1 2))
45 (test-js-eval times-rem
49 (test-js-eval divide-rem
53 (test-js-eval rem-divide
57 (test-js-eval rem-multiply
61 (test-js-eval case-return-break-null
62 ((lambda (x) (case x
(1) (2 3))) 1)