summaryrefslogtreecommitdiff
path: root/test/automated
Commit message (Collapse)AuthorAgeFilesLines
...
* Define `map-elt' as a generalized variableNicolas Petton2015-06-211-12/+12
| | | | | | | | | | | * lisp/emacs-lisp/map.el (map-elt): Define a gv-expander. * lisp/emacs-lisp/map.el (map--dispatch): Tighten the code. * lisp/emacs-lisp/map.el (map-put): Redefine it as a function using a `setf' with `map-elt'. * test/automated/map-tests.el: Comment out `test-map-put-literal'.
* Fix bytecomp-tests--warnings when $TMPDIR has a long nameEli Zaretskii2015-06-211-2/+6
| | | | | | * test/automated/bytecomp-tests.el (bytecomp-tests--warnings): Allow the warning to begin on the 3rd, not only 2nd line, which happens if temporary-file-directory has a very long name.
* Expect 2 icalendar tests to fail on MS-WindowsEli Zaretskii2015-06-211-0/+10
| | | | | * test/automated/icalendar-tests.el (icalendar-import-with-timezone) (icalendar-real-world): Make them expected failures on MS-Windows.
* Spelling fixesPaul Eggert2015-06-141-2/+2
|
* Fix quoting of help for functions with odd namesPaul Eggert2015-06-111-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While investigating Bug#20759, I discovered other quoting problems: C-h f mishandled characters like backslash and quote in function names. This fix changes the behavior so that 'C-h f pcase RET' now generates "... (\` QPAT) ..." instead of "... (` QPAT) ...", because '(format "%S" '(` FOO))' returns "(\\` FOO)". A comment in src/lread.c's read1 function says that the backslash will be needed starting in Emacs 25, which implies that 'format' is correct and the old pcase documention was wrong to omit the backslash. * lisp/emacs-lisp/nadvice.el (advice--make-docstring): * lisp/help-fns.el (help-fns--signature): * lisp/help.el (help-add-fundoc-usage): * lisp/progmodes/elisp-mode.el (elisp-function-argstring): Use help--make-usage-docstring rather than formatting help-make-usage. * lisp/emacs-lisp/pcase.el (pcase--make-docstring): Return raw docstring. * lisp/help-fns.el (help-fns--signature): New arg RAW, to return raw docstring. Take more care to distinguish raw from cooked dstrings. (describe-function-1): Let help-fns--signature substitute command keys. * lisp/help.el (help--docstring-quote): New function. (help-split-fundoc): Use it, to quote funny characters more systematically. (help--make-usage): Rename from help-make-usage, since this should be private. Leave an obsolete alias for the old name. (help--make-usage-docstring): New function. * test/automated/help-fns.el (help-fns-test-funny-names): New test.
* * lisp/let-alist.el (let-alist--deep-dot-search): Fix consArtur Malabarba2015-06-111-0/+13
| | | | * test/automated/let-alist.el (let-alist-cons): Test it.
* * test/automated/Makefile.in (ELFILES): Sort.Glenn Morris2015-06-091-1/+1
|
* Skip past `#' to find BEGDmitry Gutov2015-06-091-0/+9
| | | | | | | | * lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Skip past `#' to find BEG (bug#20771). * test/automated/elisp-mode-tests.el (elisp-completes-functions-after-hash-quote): New test.
* Fix a unit test for map.elNicolas Petton2015-06-061-3/+3
| | | | | * test/automated/map-tests.el (test-map-let): Fix the test to work with the new syntax of `map-let'.
* * test/automated/map-tests.el: Replace "assert" with "should".Glenn Morris2015-06-051-93/+93
|
* Merge branch 'map'Nicolas Petton2015-06-041-0/+333
|\
| * Add a pcase pattern for maps and `map-let' based on itNicolas Petton2015-06-021-0/+12
| | | | | | | | | | | | * lisp/emacs-lisp/map.el (map-let): New macro. (map--make-pcase-bindings, map--make-pcase-patterns): New functions. * test/automated/map-tests.el: New test for `map-let'.
| * Fix a false negative in `map-elt' with alists and values being nilNicolas Petton2015-04-251-0/+6
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/map.el (map-elt): If map is an alist and key is found but its associated value is nil, do not return the default value. * test/automated/map-tests.el: Add a regression test.
| * Do not signal an error when trying to delete a key from an arrayNicolas Petton2015-04-241-1/+4
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/map.el (map-delete): When map is an array, check if the key is present to avoid signaling an error. * test/automated/map-tests.el: Add a test for deleting non-existing keys from maps.
| * Minor improvement in map-elt.Nicolas Petton2015-04-241-0/+1
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/map.el (map-elt): Do not use `ignore-errors' when doing a lookup in arrays, but check the boundaries of the array instead. * test/automated/map-tests.el: Adds a test for `map-elt' with arrays and a negative integer as key.
| * * test/automated/map-tests.el: Refactoring of test methods.Nicolas Petton2015-04-211-149/+135
| |
| * * test/automated/map-tests.el: Renamed from map-test.el.Nicolas Petton2015-04-211-0/+0
| |
| * Throw an error when converting a map into an unknown map typeNicolas Petton2015-04-181-1/+2
| | | | | | | | | | * lisp/emacs-lisp/map.el (map-into): Throw an error if type is not valid. * test/automated/map-test.el: Add a regression test.
| * New library map.el similar to seq.el but for mapping data structures.Nicolas Petton2015-04-181-0/+324
| | | | | | | | | | * test/automated/map-test.el: New file. * lisp/emacs-lisp/map.el: New file.
* | Add new function string-greaterpNicolas Petton2015-06-041-1/+23
| | | | | | | | | | | | | | | | * lisp/subr.el (string-greaterp): New function. Also aliased to `string>'. * test/automated/subr-tests.el (string-comparison-test): Add unit tests for `string>'and `string<'. * src/fns.c (string-lessp): Better docstring.
* | Fix error introduced recently in file-notify-tests.elMichael Albinus2015-06-031-26/+19
| | | | | | | | | | | | | | * test/automated/file-notify-tests.el (file-notify--test-remote-enabled): Do not use `file-notify--test-desc'. (file-notify--deftest-remote): Revert previous patch, not necessary anymore.
* | Instrument file-notify-test.el in order to catch hydra error.Michael Albinus2015-06-031-7/+11
| | | | | | | | | | * test/automated/file-notify-tests.el (file-notify--deftest-remote): Wrap body by `ignore-case', in order to trap non-local errors.
* | Ensure, that autorevert works for remote files in file-notify-tests.elMichael Albinus2015-06-021-94/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | * test/automated/file-notify-tests.el (file-notify--test-desc): New defvar. (file-notify--test-remote-enabled) (file-notify-test00-availability, file-notify-test01-add-watch) (file-notify-test02-events): Use it. (file-notify--test-event-test): Check proper descriptor. (file-notify-test03-autorevert): Ensure, that `visited-file-modtime' has changed. Fixes: debbugs:20392
* | Generate curved quotes in ert docPaul Eggert2015-06-021-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert--print-test-for-ewoc) (ert-results-mode-menu) (ert-results-pop-to-backtrace-for-test-at-point) (ert-results-pop-to-messages-for-test-at-point) (ert-results-pop-to-should-forms-for-test-at-point) (ert-describe-test): Quote ‘like this’, not `like this', when generating doc strings and the like. * test/automated/ert-x-tests.el (ert-test-describe-test): Allow quoting ‘like this’.
* | Add test for previous commitNicolas Richard2015-06-021-0/+35
| | | | | | | | | | * test/automated/replace-tests.el: New file. (query-replace--split-string-tests): Add test for previous commit.
* | * test/automated/vc-tests.el: Try enabling tests on hydra.nixos.org.Glenn Morris2015-05-291-69/+63
| |
* | * test/automated/vc-tests.el (vc-test-rcs04-checkout-model):Glenn Morris2015-05-291-0/+2
| | | | | | | | Mark as an expected failure.
* | Change package test to look for curved quotesPaul Eggert2015-05-281-4/+4
| | | | | | | | | | | | * test/automated/package-test.el (package-test-describe-package) (package-test-signed): Search for curved single quotes as well as for grave accent and apostrophe.
* | * lisp/progmodes/f90.el (f90-type-def-re): Add "type, extends".Glenn Morris2015-05-271-0/+25
| | | | | | | | | | | | | | (f90-no-block-limit): Add "enum". (Bug#20680) * test/automated/f90.el (f90-test-bug20680, f90-test-bug20680b): New tests.
* | New test tramp-test30-make-auto-save-file-nameMichael Albinus2015-05-271-12/+94
| | | | | | | | | | | | | | | | | | | | | | * tramp-tests.el (tramp-test30-make-auto-save-file-name): New test. (tramp-test31-special-characters) (tramp-test31-special-characters-with-stat) (tramp-test31-special-characters-with-perl) (tramp-test31-special-characters-with-ls, tramp-test32-utf8) (tramp-test32-utf8-with-stat, tramp-test32-utf8-with-perl) (tramp-test32-utf8-with-ls, tramp-test33-asynchronous-requests) (tramp-test34-recursive-load, tramp-test35-unload): Rename.
* | Change defgeneric so it doesn't completely redefine the functionStefan Monnier2015-05-211-5/+35
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-generic.el (cl-generic-define): Don't throw away previously defined methods. (cl-generic-define-method): Let-bind purify-flag instead of using `fset'. (cl--generic-prefill-dispatchers): Only define during compilation. (cl-method-qualifiers): Remove redundant alias. (help-fns-short-filename): Silence byte-compiler. * test/automated/cl-generic-tests.el: Adjust to new defgeneric semantics.
* | Don't quote nil and t in doc stringsPaul Eggert2015-05-213-3/+3
| | | | | | | | | | This is as per "Tips for Documentation Strings" in the elisp manual. For consistency, do the same in diagnostics and comments.
* | ; * test/automated/subr-tests.el: Standardize license notice.Glenn Morris2015-05-201-3/+5
| |
* | Add an automated test for let-when-compileOleh Krehel2015-05-201-0/+62
| | | | | | | | * test/automated/subr-tests.el (let-when-compile): New test.
* | Add a test case for Maven warning ouputDmitry Gutov2015-05-191-4/+9
| | | | | | | | | | | | | | | | * test/automated/compile-tests.el (compile-tests--test-regexps-data): Add a case for Maven warning ouput. (compile--test-error-line): Check the compilation message type, if it's specified in the test data.
* | * test/automated/sgml-mode-tests.el: New file.Przemysław Wojnowski2015-05-181-0/+135
| |
* | Rename 'foo-gzipped' to 'foo.gz'Paul Eggert2015-05-172-1/+1
| | | | | | | | | | | | | | | | * test/automated/data/decompress/foo.gz: Rename from test/automated/data/decompress/foo-gzipped, to make it easier for other tools to tell that it's compressed. * test/automated/zlib-tests.el (zlib--decompress): Adjust to renamed file.
* | * lisp/emacs-lisp/cl-generic.el: Add dispatch on &context argumentsStefan Monnier2015-05-121-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | (cl--generic-mandatory-args): Remove. (cl--generic-split-args): New function. (cl-generic-define, cl--generic-lambda): Use it. (cl-generic-define-method): Use it as well, and add support for context args. (cl--generic-get-dispatcher): Handle &context dispatch. (cl--generic-cache-miss): `dispatch-arg' can now be a context expression. (cl--generic-dispatchers): Pre-fill. * test/automated/cl-generic-tests.el (sm-generic-test-12-context): New test.
* | Merge branch 'seq-let'Nicolas Petton2015-05-051-0/+21
|\ \
| * | Add support for &rest in `seq-let'Nicolas Petton2015-05-051-1/+5
| | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/seq.el (seq--make-bindings): Add support for `&rest' in the argument list. * test/automated/seq-tests.el: Add a test for parsing and binding `&rest' in `seq-let'.
| * | New macro seq-let, providing destructuring support to seq.elseq-letNicolas Petton2015-05-011-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/seq.el (seq-let): New macro. `seq-let' is similar to `cl-destructuring-bind' but works on all sequence types supported by `seq.el'. Bump version number to 1.6. * test/automated/seq-tests.el: Add tests for seq-let. * doc/lispref/sequences.texi: Add documentation for seq-let.
* | | Spelling fixesPaul Eggert2015-05-051-1/+1
| | |
* | | Only skip some variables that have function counterpartsDmitry Gutov2015-05-051-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/elisp-mode.el (elisp--xref-identifier-location): Only skip minor-mode-named variable if it's defined in a Lisp file, and it's in minor-mode-list (bug#20506). * test/automated/elisp-mode-tests.el (elisp-xref-finds-both-function-and-variable) (elisp-xref-finds-only-function-for-minor-mode): New tests.
* | | Make sure we're inside the let bindingsDmitry Gutov2015-05-051-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Make sure we're inside the let bindings. * test/automated/elisp-mode-tests.el (elisp-completes-functions-after-let-bindings): New test.
* | | Classify lone symbol inside let varlist as variableDmitry Gutov2015-05-041-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Classify lone symbol inside let varlist as variable. * test/automated/elisp-mode-tests.el (completest-variables-in-let-bindings): New test.
* | | elisp-completion-at-point: Prioritize being quoted over funposDmitry Gutov2015-05-031-0/+88
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Only consider function position when not inside quoted form (bug#20425). * test/automated/elisp-mode-tests.el: New file.
* | | * test/automated/cl-lib-tests.el (cl-lib-adjoin-test): Fix it.Glenn Morris2015-05-011-2/+2
| | |
* | | ; Add cl-adjoin testsPrzemysław Wojnowski2015-05-011-0/+41
|/ / | | | | | | * test/automated/cl-lib-tests.el (cl-lib-adjoin-test): New tests.
* | * test/automated/package-test.el (package-test-update-archives-async):Glenn Morris2015-04-281-0/+2
| | | | | | | | Skip test on hydra.nixos.org.
* | * test/automated/package-test.el (package-test-update-archives-async):Glenn Morris2015-04-271-1/+4
| | | | | | | | Try to handle the test server script dying.