emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/lua-mode f2915c3 324/468: Add string tab escape test


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode f2915c3 324/468: Add string tab escape test
Date: Thu, 5 Aug 2021 04:59:02 -0400 (EDT)

branch: elpa/lua-mode
commit f2915c313d9938de7ec5089d32d59736e1c27360
Author: Robert Cochran <robert-git@cochranmail.com>
Commit: Robert Cochran <robert-git@cochranmail.com>

    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'"))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]