summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/fn.fnl14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/fn.fnl b/tests/fn.fnl
index e0af7cb..aa86b12 100644
--- a/tests/fn.fnl
+++ b/tests/fn.fnl
@@ -7,21 +7,21 @@
"docstring"
[x] x)
(assert-eq (meta f) (when-meta {:fnl/docstring "docstring"
- :fnl/arglist ["x"]}))
+ :fnl/arglist ["[x]"]}))
(fn* f
"docstring"
([x] x))
(assert-eq (meta f) (when-meta {:fnl/docstring "docstring"
- :fnl/arglist ["x"]}))
+ :fnl/arglist ["([x])"]}))
(fn* f
"docstring"
([x] x)
([x y] (+ x y)))
(assert-eq (meta f) (when-meta {:fnl/docstring "docstring"
- :fnl/arglist ["\n [x]"
- "\n [x y]"]}))
+ :fnl/arglist ["\n ([x])"
+ "\n ([x y])"]}))
(fn* f
"docstring"
@@ -29,9 +29,9 @@
([x y] (+ x y))
([x y & z] (+ x y)))
(assert-eq (meta f) (when-meta {:fnl/docstring "docstring"
- :fnl/arglist ["\n [x]"
- "\n [x y]"
- "\n [x y & z]"]}))))
+ :fnl/arglist ["\n ([x])"
+ "\n ([x y])"
+ "\n ([x y & z])"]}))))
(deftest fn+
(testing "fn+ meta"