diff options
author | Sean Allred <code@seanallred.com> | 2015-01-01 19:11:21 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2015-01-01 19:11:21 -0500 |
commit | de9bf24bb7ccbb5f94cc523d4eb291ed793537fd (patch) | |
tree | 30a03a95b3184c00432bc01144435b4a2e28ce14 /test/test-util.el | |
parent | 39116611ea99b3b0ba33545d38c2983a17db487d (diff) | |
parent | e05f937910bb4ca0e7ea1c9f1273fbafac523921 (diff) |
Merge branch 'master' into search
Diffstat (limited to 'test/test-util.el')
-rw-r--r-- | test/test-util.el | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/test-util.el b/test/test-util.el new file mode 100644 index 0000000..5db1691 --- /dev/null +++ b/test/test-util.el @@ -0,0 +1,31 @@ +(ert-deftest thing-as-string () + "Test `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"))) |