diff options
author | Eli Barzilay <eli@barzilay.org> | 2021-04-10 15:10:35 -0400 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2021-04-11 14:00:09 +0200 |
commit | 686c366f8a63c448d06e5f08d604374fb316bc57 (patch) | |
tree | 16cfccd8e4c83ce2265a0b769d2e3f1bbc560dd1 /test/lisp/tempo-tests.el | |
parent | 01a513bf0beb9478e2ef801ca28ebc992455fe3c (diff) | |
download | emacs-686c366f8a63c448d06e5f08d604374fb316bc57.tar.gz emacs-686c366f8a63c448d06e5f08d604374fb316bc57.tar.bz2 emacs-686c366f8a63c448d06e5f08d604374fb316bc57.zip |
Fix calculator-string-to-number yet again (bug#47694)
* lisp/calculator.el (calculator-string-to-number):
The last bugfix changed the code to just blindly replace ".e". This
has some minor problems like making "-." parse as 0.0 instead of -0.0,
and ".1.e1" is parsed as 1 instead of 0.1. Instead, replace the first
"." that is followed by a non-digit with ".0". Since this has had
several problems over the years, add some tests too. (Also, restore
the original if-indentation style.)
Diffstat (limited to 'test/lisp/tempo-tests.el')
0 files changed, 0 insertions, 0 deletions