forked from armedbear/abcl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request armedbear#154 from easye/easye/20200319a
Easye/20200319a
- Loading branch information
Showing
6 changed files
with
96 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
export JENV_ROOT=$HOME/.jenv | ||
if [[ $(echo $PATH | grep -c .jenv) -eq 0 ]]; then | ||
export PATH="$HOME/.jenv/bin:$PATH" | ||
export PATH="$JENV_ROOT/bin:$PATH" | ||
fi | ||
|
||
eval "$(jenv init -)" | ||
|
||
eval "$(jenv enable-plugin export)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
(in-package :cl-user) | ||
|
||
(prove:plan 1) | ||
(prove:isnt | ||
(handler-case | ||
(jcoerce 2.4 "double") | ||
(error (e) (format *standard-output* "error: ~a~%" e))) | ||
nil | ||
"Coercing 2.4 to a double") | ||
|
||
(let ((values '(2.44 -2.44))) | ||
(prove:plan (length values)) | ||
(dolist (value values) | ||
(prove:is | ||
(= (#"doubleValue" (jcoerce value "double")) | ||
value) | ||
(format nil "JCOERCE ~a to a 'double'" value)))) | ||
|
||
(prove:finalize) | ||
|
||
|