branch: elpa/lua-mode
commit f2915c313d9938de7ec5089d32d59736e1c27360
Author: Robert Cochran <[email protected]>
Commit: Robert Cochran <[email protected]>
Add string tab escape test
---
test/test-inferior-process.el | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test/test-inferior-process.el b/test/test-inferior-process.el
index 2fedd29..e51f00c 100644
--- a/test/test-inferior-process.el
+++ b/test/test-inferior-process.el
@@ -142,3 +142,10 @@ function () end
(kill-buffer buf))
(delete-file fname)
(kill-buffer "*lua*")))))
+
+(describe "String escaping"
+ (it "Escapes literal tabs"
+ (expect (string=
+ (lua-make-lua-string "\
+ -- comment indented with a tab")
+ "'\\t-- comment indented with a tab'"))))