diff options
author | Tom Faulhaber <git_net@infolace.com> | 2009-10-31 00:38:29 -0700 |
---|---|---|
committer | Tom Faulhaber <git_net@infolace.com> | 2009-10-31 00:38:29 -0700 |
commit | 6f9e9c276bf53b0fce2275abf29a25f9735a6409 (patch) | |
tree | 45a789b66d99164ac49fdd7c2e694219bbcc3b3c /src/clojure/contrib/test_contrib | |
parent | 3f267049a38f205ac3c7d91173c63648f139e790 (diff) |
cl-format: ~$ wasn't handling very small fractions (that round to 0) correctly.
refs #40
Diffstat (limited to 'src/clojure/contrib/test_contrib')
-rw-r--r-- | src/clojure/contrib/test_contrib/pprint/cl_format.clj | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/clojure/contrib/test_contrib/pprint/cl_format.clj b/src/clojure/contrib/test_contrib/pprint/cl_format.clj index 6684bff2..6c73e63f 100644 --- a/src/clojure/contrib/test_contrib/pprint/cl_format.clj +++ b/src/clojure/contrib/test_contrib/pprint/cl_format.clj @@ -188,7 +188,13 @@ (cl-format nil "~1,1,8,' @:$" -12.0) "- 12.0" (cl-format nil "~1,1,8,' @$" -12.0) " -12.0" (cl-format nil "~1,1,8,' :$" -12.0) "- 12.0" - (cl-format nil "~1,1,8,' $" -12.0) " -12.0") + (cl-format nil "~1,1,8,' $" -12.0) " -12.0" + (cl-format nil "~1,1$" 0.001) "0.0" + (cl-format nil "~2,1$" 0.001) "0.00" + (cl-format nil "~1,1,6$" 0.001) " 0.0" + (cl-format nil "~1,1,6$" 0.0015) " 0.0" + (cl-format nil "~2,1,6$" 0.005) " 0.01" + (cl-format nil "~2,1,6$" 0.01) " 0.01") (simple-tests f-tests (cl-format nil "~,1f" -12.0) "-12.0") |