[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lua-mode 7099b81 248/468: Bump tests: fix some, move expec
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/lua-mode 7099b81 248/468: Bump tests: fix some, move expected failures to separate test cases |
Date: |
Thu, 5 Aug 2021 04:58:47 -0400 (EDT) |
branch: elpa/lua-mode
commit 7099b8154d6e3655aa268895d246c3b94919dd91
Author: immerrr <immerrr+lua@gmail.com>
Commit: immerrr <immerrr+lua@gmail.com>
Bump tests: fix some, move expected failures to separate test cases
---
ert-tests/test-indentation.el | 76 ++++++++++++++++++++++++++++---------------
1 file changed, 49 insertions(+), 27 deletions(-)
diff --git a/ert-tests/test-indentation.el b/ert-tests/test-indentation.el
index 8639820..e9fec46 100644
--- a/ert-tests/test-indentation.el
+++ b/ert-tests/test-indentation.el
@@ -233,16 +233,8 @@ a = 0")
(should-lua-indent "\
while
- foo do
- a = a + 1
-end
-
-a = 0")
-
- (should-lua-indent "\
-while
foo
- do
+do
a = a + 1
end
@@ -257,7 +249,7 @@ a = 0")
while
x +
y > 0
- do
+do
a = a + 1
end
@@ -318,18 +310,6 @@ for k, v in pairs(bar) do a = a + 1 end
a = 0")
(should-lua-indent "\
-for
- k, v in pairs(bar) do a = a + 1 end
-
-a = 0")
-
- (should-lua-indent "\
-for k, v
- in pairs(bar) do a = a + 1 end
-
-a = 0")
-
- (should-lua-indent "\
for y = 0, 10 do
a = a + 1
end
@@ -366,14 +346,31 @@ foobar(a,
c)")
(should-lua-indent "\
+foobar{
+ a, b, c
+}"))
+
+
+(ert-deftest lua-indentation-funcall-with-nested-table ()
+ :expected-result :failed
+ (should-lua-indent "\
foobar({
a, b, c
})")
(should-lua-indent "\
-foobar{
- a, b, c
-}")
+foobar(a, {
+ b,
+ c
+})")
+
+ (should-lua-indent "\
+foobar(
+ a,
+ {
+ b,
+ c
+ })")
(should-lua-indent "\
foobar(a,
@@ -397,8 +394,8 @@ foobar(
b
},
c, d
-)")
- )
+)"))
+
(ert-deftest lua-indentation-continuation-with-functioncall ()
(should-lua-indent "\
@@ -467,3 +464,28 @@ a = 0"))
do
foobar = _do
end"))
+
+
+(ert-deftest lua-indentation-block-intro-continuation ()
+ :expected-result :failed
+ (should-lua-indent "\
+while
+ foo do
+ a = a + 1
+end
+
+a = 0")
+
+ (should-lua-indent "\
+for k, v
+ in pairs(bar) do a = a + 1 end
+
+a = 0")
+
+ (should-lua-indent "\
+for k, v
+ in pairs(bar) do a = a + 1 end
+
+a = 0")
+
+ )
- [nongnu] elpa/lua-mode 171b99c 382/468: Merge pull request #159 from tarsiiformes/typos, (continued)
- [nongnu] elpa/lua-mode 171b99c 382/468: Merge pull request #159 from tarsiiformes/typos, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode a1f6d28 385/468: added lua-indent-close-paren-align var, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 3c9ec08 391/468: Depend on Emacs 24.3, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 478da4a 393/468: Fixed order of expected & actual in matcher's message, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode d15bdb1 395/468: Merge pull request #164 from sergeyklay/fix/buttercup-matcher-message, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode c1b6019 396/468: Fix reproducibility issue caused by %d pattern in export-subst, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode c9b9d47 401/468: Fix typo, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode d7eaa8e 403/468: Add lua-backward-up-list command, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode db8d474 408/468: Fix indentation of multiline while/for+do and if/elseif+then, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 099c130 240/468: Bump NEWS, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 7099b81 248/468: Bump tests: fix some, move expected failures to separate test cases,
Philip Kaludercic <=
- [nongnu] elpa/lua-mode 6a5fa6b 249/468: Remove unused tempfile functionality, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 1a0e191 255/468: lua--rx-symbol: fix shy-grouping, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 6f7800f 258/468: Merge (and squash) pull request #66 from rolpereira/master, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 3265552 263/468: indentation-test: add continuation tests for unary ops and ..., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 9abad67 273/468: Merge remote-tracking branch 'upstream/master', Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode ec491dd 291/468: lua-process-init-code: use load when loadstring is not available, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode d7ccb88 294/468: Add new builtin functions and operators from Lua 5.3, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode c0d8c50 295/468: Merge pull request #86 from immerrr/if-loadstring-is-nil-use-load, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 3f7a032 300/468: Move .nosearch in test/, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode ca24f4c 302/468: Add `run-lua` alias, Philip Kaludercic, 2021/08/05