Skip to content

Commit

Permalink
fixed a bug on the Double clj->cl, incremented project version
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Severo committed Nov 6, 2020
1 parent 2a16f85 commit d12827e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 23 deletions.
27 changes: 8 additions & 19 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
# Change Log
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).

## [Unreleased]
### Changed
- Add a new arity to `make-widget-async` to provide a different widget shape.

## [0.1.1] - 2020-10-16
### Changed
- Documentation on how to make the widgets.

### Removed
- `make-widget-sync` - we're all async, all the time.

### Fixed
- Fixed widget maker to keep working when daylight savings switches over.

## 0.1.0 - 2020-10-16
## [0.1.1] - 2020-11-06
### Added
- Files from the new template.
- Widget maker public API - `make-widget-sync`.
- a examples folder
- Keyword and nil are now supported by the CommonLispfiable protocol
- Fixing the Double type on the CommonLispfiable protocol
- the defun macro

## 0.1.0 - 2020-11-04
- First release

[Unreleased]: https://github.com/your-name/abclj/compare/0.1.1...HEAD
[0.1.1]: https://github.com/your-name/abclj/compare/0.1.0...0.1.1
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject abclj "0.1.0"
(defproject abclj "0.1.1"
:description "Armed Bear Clojure, dead easy Common Lisp interop"
:url "https://www.github.com/lsevero/abclj"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
Expand Down
8 changes: 6 additions & 2 deletions src/abclj/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,18 @@
(cl-string obj))
clojure.lang.Symbol (clj->cl [obj]
(cl-symbol obj))
clojure.lang.Keyword (clj->cl [obj]
(cl-symbol obj))
Float (clj->cl [obj]
(cl-double obj))
Double (clj-cl [obj]
(cl-double))
Double (clj->cl [obj]
(cl-double obj))
Boolean (clj->cl [obj]
(if obj
cl-t
cl-nil))
nil (clj->cl [_]
cl-nil)
Object (clj->cl [obj]
obj))

Expand Down
3 changes: 2 additions & 1 deletion test/abclj/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,5 @@
(deftest cl-evaluate-test
(testing
(is (= 3 (cl->clj (cl-evaluate "(+ 1 2)"))))
(is (= 3 (cl->clj (cl-evaluate (cl-cons [(cl-symbol 'cl/+) 1 2 cl-nil])))))))
(is (= 3 (cl->clj (cl-evaluate (cl-cons [(cl-symbol 'cl/+) 1 2 cl-nil])))))
(is (= :EQUAL (cl->clj (cl-evaluate (cl-cons ['cl/if ['cl/= 1 1.0 nil] :equal :not-equal nil])))))))

0 comments on commit d12827e

Please sign in to comment.