[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lua-mode 6315591 265/468: indentation-test: extend unary o
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/lua-mode 6315591 265/468: indentation-test: extend unary op test cases |
Date: |
Thu, 5 Aug 2021 04:58:50 -0400 (EDT) |
branch: elpa/lua-mode
commit 63155912d3744a43f70b6472703a9115bad32198
Author: immerrr <immerrr+lua@gmail.com>
Commit: immerrr <immerrr+lua@gmail.com>
indentation-test: extend unary op test cases
---
test/indentation-test.el | 37 +++++++++++++++++++++----------------
1 file changed, 21 insertions(+), 16 deletions(-)
diff --git a/test/indentation-test.el b/test/indentation-test.el
index 7ebc6c0..bfd5b31 100644
--- a/test/indentation-test.el
+++ b/test/indentation-test.el
@@ -160,25 +160,30 @@ end"))
foo = bar
-#some_str")
- (should-lua-indent "\
+ (cl-dolist (unop '("-" "#" "not "))
+ (should-lua-indent (replace-regexp-in-string "UNOP" unop "\
foobar(qux,
- -quux)")
-
- (should-lua-indent "\
+ UNOPquux)" 'fixedcase))
+ (should-lua-indent (replace-regexp-in-string "UNOP" unop "\
foobar(qux, xyzzy
- -quux)")
-
- (should-lua-indent "\
-foobar(qux,
- #quux)")
-
- (should-lua-indent "\
-foobar(qux,
- not quux)")
+ UNOPquux)" 'fixedcase))
+ (should-lua-indent (replace-regexp-in-string "UNOP" unop "\
+foobar(
+ UNOPquux)" 'fixedcase))
+ (should-lua-indent (replace-regexp-in-string "UNOP" unop "\
+x = {qux,
+ UNOPquux}" 'fixedcase))
+ (should-lua-indent (replace-regexp-in-string "UNOP" unop "\
+x = {qux;
+ UNOPquux}" 'fixedcase))
+ (should-lua-indent (replace-regexp-in-string "UNOP" unop "\
+x = {qux, xyzzy
+ UNOPquux}" 'fixedcase))
+ (should-lua-indent (replace-regexp-in-string "UNOP" unop "\
+x = {
+ UNOPquux
+}" 'fixedcase))))
- (should-lua-indent "\
-foobar(qux, xyzzy and
- not quux)"))
(ert-deftest lua-indentation-return-continuation ()
- [nongnu] elpa/lua-mode 52cc3e4 378/468: Merge pull request #154 from immerrr/set-comint-prompt-regexp-locally-in-process-buf, (continued)
- [nongnu] elpa/lua-mode 52cc3e4 378/468: Merge pull request #154 from immerrr/set-comint-prompt-regexp-locally-in-process-buf, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 0f7f010 383/468: Fix typo, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 505896f 386/468: added tests for lua-indent-nested-block-content-align and lua-indent-close-paren-align, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 0cf8000 387/468: add lua-indent-close-paren-align to README.md, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 2a8b58b 390/468: Silence byte-compiler, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 1f596a9 392/468: Merge pull request #161 from tarsiiformes/lexical, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 0781d83 404/468: Merge pull request #175 from immerrr/add-lua-backward-up-list-command, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode d6dc6fb 406/468: Don't add "continuation line" indentation inside parentheses/brackets, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode ed01d35 071/468: Implement proper syntax-status querying: improve precision a lot, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 0a1e915 262/468: bug fixes for show/hide process buffer, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 6315591 265/468: indentation-test: extend unary op test cases,
Philip Kaludercic <=
- [nongnu] elpa/lua-mode 6c4f7cb 251/468: lua-default-command-switches: declare buffer-local with make-variable-buffer-local, not make-local-variable, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 9117cfc 269/468: Makefile: add tryout target to start editing test.lua, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 2453e37 272/468: Makefile: account EMACS env variable in 'tryout' target, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 3e8d475 275/468: Fixed broken local variable assignments, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 1d804f6 279/468: Drop pre-Emacs23 support macros, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode d6f7e0b 287/468: lua-documentation-function: New custom variable., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode f2e5c4b 299/468: Merge pull request #90 from Schnouki/lua53, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 625ed2f 281/468: Move credits to AUTHORS, cleanup Commentary section a bit, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 0b41d44 319/468: Merge master into stable, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode ea7e35c 321/468: Escape tabs in lua-make-lua-string, Philip Kaludercic, 2021/08/05