1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-10 21:50:37 -08:00
emacs/test/src
Mattias Engdegård de45864cf7 Fix lexing of numbers with trailing decimal point and exponent
Numbers with a trailing dot and an exponent were incorrectly read as
integers (with the exponent ignored) instead of the floats they should
be.  For example, 1.e6 was read as the integer 1, not 1000000.0 as
every sane person would agree was meant. (Bug#48678)

Numbers with a trailing dot but no exponent are still read as
integers.

* src/lread.c (string_to_number): Fix float lexing.
* test/src/lread-tests.el (lread-float): Add test.
* doc/lispref/numbers.texi (Float Basics): Clarify syntax.
2021-05-27 14:16:28 +02:00
..
comp-resources Make use of ert-resource-file' ert-resource-directory' in comp-tests 2021-04-26 20:01:50 +02:00
emacs-module-resources Update copyright year to 2021 2021-01-01 01:13:56 -08:00
lread-resources Move some test data to follow our conventions 2020-10-23 16:29:46 +02:00
regex-resources ; Fix more typos 2020-10-03 12:53:51 +02:00
syntax-resources Enhance syntax-tests.el to test nestable comments (Lisp style) 2020-11-17 16:51:49 +00:00
alloc-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
buffer-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
callint-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
callproc-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
casefiddle-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
character-tests.el ; Normalize and add missing first and last lines 2021-04-19 12:21:01 +02:00
charset-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
chartab-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cmds-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
coding-tests.el Avoid lowering gc-cons-threshold 2021-04-22 04:11:02 +02:00
comp-tests.el Rename comp-debug -> native-comp-debug 2021-05-06 17:16:07 +02:00
data-tests.el Assert not local-variable-p after setq in let_default binding 2021-03-25 12:39:26 -04:00
decompress-tests.el Prefer skip-unless in more tests 2021-01-13 17:39:53 +01:00
editfns-tests.el ; Normalize and add missing first and last lines 2021-04-19 12:21:01 +02:00
emacs-module-tests.el * test/src/emacs-module-tests.el (mod-test-file): Unbreak out-of-tree. 2021-05-10 11:37:40 -07:00
emacs-tests.el Don't use symbolic links in the test resource directory. 2021-05-07 18:36:57 +02:00
eval-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
fileio-tests.el ; Normalize and add missing first and last lines 2021-04-19 12:21:01 +02:00
filelock-tests.el File unlock errors now issue warnings (Bug#46397) 2021-03-27 12:17:31 +03:00
floatfns-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
fns-tests.el ; Minor license statement fixes 2021-02-08 09:10:57 +01:00
font-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
indent-tests.el ; Minor license statement fixes 2021-02-08 09:10:57 +01:00
inotify-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
json-tests.el Allow any JSON value at the top level (Bug#42994). 2021-02-13 14:37:19 +01:00
keyboard-tests.el * test/lisp/emacs-lisp/edebug-tests.el: Adjust to new edebug-eval-defun. 2021-02-19 12:08:00 -05:00
keymap-tests.el Add some new tests for keymap.c 2021-03-06 04:10:45 +01:00
lcms-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
lread-tests.el Fix lexing of numbers with trailing decimal point and exponent 2021-05-27 14:16:28 +02:00
marker-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
minibuf-tests.el * test/src/minibuf-tests.el (test-inhibit-interaction): Fix test. 2021-02-01 12:29:10 +01:00
print-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
process-tests.el Remove unnecessary requires of rx 2021-03-22 01:06:32 +01:00
regex-emacs-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
syntax-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
textprop-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
thread-tests.el ; Normalize and add missing first and last lines 2021-04-19 12:21:01 +02:00
timefns-tests.el ; Normalize and add missing first and last lines 2021-04-19 12:21:01 +02:00
undo-tests.el Fix a warning due to not preloading facemenu.el 2021-03-19 02:12:01 +01:00
xdisp-tests.el * test/src/xdisp-tests.el: Fix tests to work in batch mode 2021-01-18 19:03:01 +02:00
xfaces-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
xml-tests.el Prefer skip-unless in more tests 2021-01-13 17:39:53 +01:00