Skip to content

Commit aa29956

Browse files
committed
Add'l test cases
1 parent d8870c1 commit aa29956

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Fixed
1313
* Fix a bug where `basilisp.lang.compiler.exception.CompilerException` would nearly always suppress line information in it's `data` map (#845)
14+
* Fix a bug where the function returned by `partial` retained the meta, arities, and `with_meta` method of the wrapped function rather than creating new ones (#847)
1415

1516
## [v0.1.0b1]
1617
### Added

tests/basilisp/test_core_fns.lpy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,10 +599,12 @@
599599
(is (= #{1 3 :rest} (.-arities new-f)))
600600
(is (nil? (meta new-f)))
601601
(is (= {:different-tag :yes} (meta new-f-meta)))
602+
(is (= [:a :c] (new-f-meta :c)))
602603

603604
(let [partial-of-partial (partial new-f-meta :b)]
604605
(is (= #{2 :rest} (.-arities partial-of-partial)))
605-
(is (nil? (meta partial-of-partial))))))))
606+
(is (nil? (meta partial-of-partial)))
607+
(is (= [:a :b :e :f '(:g :h)] (partial-of-partial :e :f :g :h))))))))
606608

607609
(deftest reduce-test
608610
(testing "with no init"

0 commit comments

Comments
 (0)