diff options
author | Sean Allred <code@seanallred.com> | 2015-01-02 12:14:23 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2015-01-02 12:14:23 -0500 |
commit | dbbcabcffcd7ef171b7f8f28ce35e28b70aa00a8 (patch) | |
tree | 7c66182afa68c8dc1528c50ae0c0f846d278ef12 /test/test-util.el | |
parent | 00ccd139248e782cd8316eff65c26aed838c7e46 (diff) | |
parent | 9a420bffcc426b4826f14ad1f62b5430750821df (diff) |
Merge branch 'master' into fix-mark-read-logic
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"))) |