diff options
author | Sean Allred <code@seanallred.com> | 2014-12-03 19:45:38 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-12-03 19:45:38 -0500 |
commit | 90f7bbdd23b99e311fd4942a30ad531420fc0ce2 (patch) | |
tree | c77890b4800813287f5d2fdf38effd389c219164 /test/tests.el | |
parent | 67b60ea558f0386a1ea3dadcf3a9c4d22d398620 (diff) | |
parent | 6b2ecadd89e31feb994883987c38f6988a140b8c (diff) |
Merge pull request #131 from vermiculus/issue-130
url-hexify values in key-value pairs
Diffstat (limited to 'test/tests.el')
-rw-r--r-- | test/tests.el | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/tests.el b/test/tests.el index 75238fe..43531b4 100644 --- a/test/tests.el +++ b/test/tests.el @@ -133,3 +133,35 @@ (macroexpand '(sx-assoc-let data (cons .test-one .test-two)))))) + +(ert-deftest thing-as-string () + "Tests `sx--thing-as-string'" + (should + (string= (sx--thing-as-string + '(hello world (this is a test)) + '(";" "+")) + "hello;world;this+is+a+test")) + (should + (string= (sx--thing-as-string + '(this is a test) '(";" "+")) + "this;is;a;test")) + (should + (string= (sx--thing-as-string + '(this is a test) "+") + "this+is+a+test")) + (should + (string= (sx--thing-as-string + '(this is a test)) + "this;is;a;test")) + (should + (string= (sx--thing-as-string + 'test) + "test")) + (should + (string= (sx--thing-as-string + 'test&) + "test&")) + (should + (string= (sx--thing-as-string + 'test& nil t) + "test%26"))) |