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

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

[nongnu] elpa/emacsql d440b44778 076/427: Add escape vector test.


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql d440b44778 076/427: Add escape vector test.
Date: Tue, 13 Dec 2022 02:59:29 -0500 (EST)

branch: elpa/emacsql
commit d440b447788b2b3d615ada91d6a836448c244125
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>

    Add escape vector test.
---
 emacsql-tests.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/emacsql-tests.el b/emacsql-tests.el
index 38fc5e0300..42adb83255 100644
--- a/emacsql-tests.el
+++ b/emacsql-tests.el
@@ -22,6 +22,12 @@
   (should (string= (emacsql-escape-value '(a b c)) "'(a b c)'"))
   (should (string= (emacsql-escape-value nil) "NULL")))
 
+(ert-deftest emacsql-escape-vector ()
+  (should (string= (emacsql-escape-vector [1 2 3]) "(1, 2, 3)"))
+  (should (string= (emacsql-escape-vector '([1 2 3])) "(1, 2, 3)"))
+  (should (string= (emacsql-escape-vector '([1 2 3] [4 5 6]))
+                   "(1, 2, 3), (4, 5, 6)")))
+
 (ert-deftest emacsql-schema ()
   (should (string= (emacsql--schema-to-string [a]) "a"))
   (should (string= (emacsql--schema-to-string [a b c]) "a, b, c"))



reply via email to

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