Skip to content

Commit

Permalink
Add tests for procedure conversions.
Browse files Browse the repository at this point in the history
  • Loading branch information
belmarca committed Jan 11, 2023
1 parent a0805f7 commit 1b9fdcf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test.scm
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
(let ((p (python-eval "foreign(lambda x: x)")))
\s=`p
(test-assert \s==`p))
(let ((p (lambda (x) x)))
\s=`(scheme p)
(test-assert (eq? \s p)))
(test-equal (cos 0) \(`cos)(0))

;; *args and **kwargs
(let ((p (python-eval "lambda x, *args, **kwargs: args if x else kwargs")))
Expand Down

0 comments on commit 1b9fdcf

Please sign in to comment.