[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tomelr 57bed2cca8 73/84: test: Add a test for string sc
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tomelr 57bed2cca8 73/84: test: Add a test for string scalar with blank lines |
Date: |
Tue, 3 May 2022 09:58:15 -0400 (EDT) |
branch: externals/tomelr
commit 57bed2cca8b648d2abc6da525a3420b3e968efb4
Author: Kaushal Modi <kaushal.modi@gmail.com>
Commit: Kaushal Modi <kaushal.modi@gmail.com>
test: Add a test for string scalar with blank lines
---
test/tscalar.el | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/test/tscalar.el b/test/tscalar.el
index 47d38167be..e6ede6d85a 100644
--- a/test/tscalar.el
+++ b/test/tscalar.el
@@ -78,15 +78,28 @@
;;;; Scalar - String
(ert-deftest test-scalar-string ()
- (let ((inp '(((string1 . "Roses are red"))
+ (let ((inp '(
+ ((string1 . "Roses are red"))
((string2 . "Roses are red\nViolets are blue")) ;Newline in
string
- ((string3 . "\"Hello!\"")))) ;Quote in string
- (ref '("string1 = \"Roses are red\""
+ ((string3 . "\"Hello!\"")) ;Quote in string
+ ((string4 . "Line 1\n\nLine 3\n\n Line 5 with 2 space
indentation\n\nLine 7")) ;Blank lines in string
+ ))
+ (ref '(
+ "string1 = \"Roses are red\""
"string2 = \"\"\"
Roses are red
Violets are blue\"\"\""
"string3 = \"\"\"
-\"Hello!\"\"\"\""))
+\"Hello!\"\"\"\""
+ "string4 = \"\"\"
+Line 1
+
+Line 3
+
+ Line 5 with 2 space indentation
+
+Line 7\"\"\""
+ ))
out)
(dolist (el inp)
(push (tomelr-encode el) out))
- [elpa] externals/tomelr bcaea16ec0 39/84: chore(doc): Clean up old code block, (continued)
- [elpa] externals/tomelr bcaea16ec0 39/84: chore(doc): Clean up old code block, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 45542fb234 67/84: chore: Bump version, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 7c004af90d 66/84: style: Remove unnecessary tomelr-encode-* functions, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 568de5efb2 83/84: chore: Bump version, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 0d4674f782 42/84: test: Test `tomelr--toml-table-p`, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 0eb4fa04ac 43/84: fix: Don't let array of TOML tables be recognized as TOML tables, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr a33dbd1286 50/84: fix: Detect nested TTA correctly when not present in first TT key, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr dc9b2a63f8 60/84: doc: Remove an invalid example, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 044b5e1a04 61/84: fix: TT with key with array value are detected correctly, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 171e5a7682 62/84: fix: List format array of plists now detected as TOML Table Array, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 57bed2cca8 73/84: test: Add a test for string scalar with blank lines,
ELPA Syncer <=