[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 80cd28f 28/46: tiny-test.el: added a test for `tiny-replac
From: |
Oleh Krehel |
Subject: |
[elpa] master 80cd28f 28/46: tiny-test.el: added a test for `tiny-replace-this-sexp' |
Date: |
Sun, 22 Mar 2015 17:42:34 +0000 |
branch: master
commit 80cd28fb977b6d1ab8e848775feb47551a42730b
Author: oleh <address@hidden>
Commit: oleh <address@hidden>
tiny-test.el: added a test for `tiny-replace-this-sexp'
---
tiny-test.el | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/tiny-test.el b/tiny-test.el
index 2350724..07667f8 100644
--- a/tiny-test.el
+++ b/tiny-test.el
@@ -140,6 +140,14 @@ SCHEDULED: <2013-11-25 Mon> DEADLINE: <2013-12-02 Mon>
SCHEDULED: <2013-12-02 Mon> DEADLINE: <2013-12-09 Mon>"
)))
+(ert-deftest tiny-replace-this-sexp ()
+ (should (equal (with-text-value "(mapcar (lambda (x) (* x x)) '(1 2 3))"
+ (lambda()(goto-char
16)(tiny-replace-this-sexp)(buffer-string)))
+ "(1 4 9)"))
+ (should (equal (with-text-value "(mapcar (lambda (x) (* x x)) '(1 2 3))"
+ (lambda()(goto-char
2)(tiny-replace-this-sexp)(buffer-string)))
+ "(1 4 9)")))
+
(ert-deftest tiny-tokenize ()
(should (equal (tiny-tokenize "stringxx") "(string x x)"))
(should (equal (tiny-tokenize "*2+xxx") "(* 2 (+ x x x))"))
- [elpa] master 80e64b8 18/46: README.md: minor update., (continued)
- [elpa] master 80e64b8 18/46: README.md: minor update., Oleh Krehel, 2015/03/22
- [elpa] master 2bd9abb 21/46: tiny.el: moved tests to tiny-test.el., Oleh Krehel, 2015/03/22
- [elpa] master b99315d 20/46: tiny.el: updated the doc., Oleh Krehel, 2015/03/22
- [elpa] master 11722a1 19/46: tiny.el: fixed typos., Oleh Krehel, 2015/03/22
- [elpa] master b4fff55 23/46: tiny.el: fixed `tiny-tokenize', Oleh Krehel, 2015/03/22
- [elpa] master 5df4f79 25/46: tiny.el: removed `tiny-beginning-of-string', Oleh Krehel, 2015/03/22
- [elpa] master 8a3cab0 27/46: tiny.el: removed `tiny-replace-preceding-sexp', Oleh Krehel, 2015/03/22
- [elpa] master f1d1a2e 22/46: tiny-test.el: switched to ERT., Oleh Krehel, 2015/03/22
- [elpa] master 4c87ade 29/46: tiny.el: fixed a bug in `tiny-mapconcat-parse'., Oleh Krehel, 2015/03/22
- [elpa] master a6e4144 30/46: tiny.el (tiny-extract-sexps): can handle e.g. %0.1f(...) style formatting., Oleh Krehel, 2015/03/22
- [elpa] master 80cd28f 28/46: tiny-test.el: added a test for `tiny-replace-this-sexp',
Oleh Krehel <=
- [elpa] master 08ba593 24/46: tiny.el: fixed `tiny-tokenize', Oleh Krehel, 2015/03/22
- [elpa] master e6abbc6 31/46: tiny.el (tiny-date): renamed from t-date. In format string it's just "date", Oleh Krehel, 2015/03/22
- [elpa] master c59bc94 36/46: tiny.el (tiny-extract-sexps): add missing let binding, Oleh Krehel, 2015/03/22
- [elpa] master cf74dd1 34/46: tiny.el: fix docs, Oleh Krehel, 2015/03/22
- [elpa] master b843226 26/46: tiny.el: removed `tiny-replace-sexp-desperately', Oleh Krehel, 2015/03/22
- [elpa] master 7893a02 35/46: tiny.el: add autoload to `tiny-expand', Oleh Krehel, 2015/03/22
- [elpa] master 075e4d0 33/46: Fix "m10|%0.2f", Oleh Krehel, 2015/03/22
- [elpa] master 4eef4e6 37/46: tiny.el: add a test case, Oleh Krehel, 2015/03/22
- [elpa] master 3a56283 38/46: tiny.el (tiny-mapconcat-parse): case-sensitive, Oleh Krehel, 2015/03/22
- [elpa] master dea7748 39/46: tiny.el (tiny-date): improve, Oleh Krehel, 2015/03/22