diff options
author | Matus Goljer <dota.keys@gmail.com> | 2014-07-25 15:44:03 +0200 |
---|---|---|
committer | Matus Goljer <dota.keys@gmail.com> | 2014-07-25 15:44:03 +0200 |
commit | aa9333fa9f4fae7e6569cb98944bae99c79c36e4 (patch) | |
tree | f3ccc8090ae93d6d90e3c11492c544c227a3d403 /dev | |
parent | fec417a3fffcce8903c4eb3f415e3f5dcbd7348a (diff) |
Add s-wrap
Diffstat (limited to 'dev')
-rw-r--r-- | dev/examples.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dev/examples.el b/dev/examples.el index 0531a31..95aaa18 100644 --- a/dev/examples.el +++ b/dev/examples.el @@ -109,7 +109,12 @@ (s-prepend "abc" "def") => "abcdef") (defexamples s-append - (s-append "abc" "def") => "defabc")) + (s-append "abc" "def") => "defabc") + + (defexamples s-wrap + (s-wrap "[" "]" "foobar") => "[foobar]" + (s-wrap "(" "" "foobar") => "(foobar" + (s-wrap "" ")" "foobar") => "foobar)")) (def-example-group "To and from lists" (defexamples s-lines |