You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

8 lines
230 B

  1. (define (empty-function-body-test))
  2. ;; test that arguments to apply are only evaled once
  3. (define counter 0)
  4. (assert (= (apply (lambda (x) x) (begin (mutate! counter (+ 1 counter)) (list +)))
  5. +))
  6. (assert (= counter 1))