[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash bf99147 247/426: Fix `-tree-mapreduce-from` test &
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash bf99147 247/426: Fix `-tree-mapreduce-from` test & reformat the tests |
Date: |
Tue, 04 Aug 2015 19:38:03 +0000 |
branch: externals/dash
commit bf99147ca02ec7f40d2279e9a4e490394ba6bc7d
Author: Matus Goljer <address@hidden>
Commit: Matus Goljer <address@hidden>
Fix `-tree-mapreduce-from` test & reformat the tests
---
dev/examples.el | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/dev/examples.el b/dev/examples.el
index baf1257..84d72f8 100644
--- a/dev/examples.el
+++ b/dev/examples.el
@@ -375,17 +375,20 @@
(--tree-mapreduce 0 (max acc (1+ it)) '(1 (2 (4 9) (2 1)) (7 (4 3)))) => 3
(--tree-mapreduce (-value-to-list it)
(-concat it acc)
- '((1 . 2) (3 . 4) (5 (6 7) 8))) => '(1 2 3 4 5 6 7 8)
- (--tree-mapreduce (if (-cons-pair? it) (cdr it) it)
- (concat it " " acc)
- '("foo" (bar . "bar") ((baz . "baz"))
"quux" (qwop . "qwop"))) => "foo bar baz quux qwop"
- (--tree-mapreduce (if (-cons-pair? it)
(list (cdr it)) nil)
- (append it acc)
- '((elips-mode (foo
(bar . booze)) (baz . qux)) (c-mode (foo . bla) (bum . bam)))) => '(booze qux
bla bam))
+ '((1 . 2) (3 . 4) (5 (6 7) 8)))
+ => '(1 2 3 4 5 6 7 8)
+ (--tree-mapreduce (if (-cons-pair? it) (cdr it) it)
+ (concat it " " acc)
+ '("foo" (bar . "bar") ((baz . "baz")) "quux" (qwop .
"qwop")))
+ => "foo bar baz quux qwop"
+ (--tree-mapreduce (if (-cons-pair? it) (list (cdr it)) nil)
+ (append it acc)
+ '((elips-mode (foo (bar . booze)) (baz . qux)) (c-mode
(foo . bla) (bum . bam))))
+ => '(booze qux bla bam))
(defexamples -tree-mapreduce-from
(-tree-mapreduce-from 'identity '* 1 '(1 (2 (3 4) (5 6)) (7 (8 9)))) =>
362880
- (--tree-mapreduce-from (+ it it) (cons it acc) nil '(1 (2 (4 9) (2 1)) (7
(4 3)))) => (2 (4 (8 18) (4 2)) (14 (8 6)))
+ (--tree-mapreduce-from (+ it it) (cons it acc) nil '(1 (2 (4 9) (2 1)) (7
(4 3)))) => '(2 (4 (8 18) (4 2)) (14 (8 6)))
(concat "{" (--tree-mapreduce-from
(cond
((-cons-pair? it)
@@ -395,7 +398,8 @@
(equal (substring it (1- (length it)))
"{"))
", ") acc)
"}"
- '((elips-mode (foo (bar . booze)) (baz . qux)) (c-mode (foo .
bla) (bum . bam))))) => "{elips-mode : {foo : {bar -> booze}, baz -> qux},
c-mode : {foo -> bla, bum -> bam}}")
+ '((elips-mode (foo (bar . booze)) (baz . qux)) (c-mode (foo .
bla) (bum . bam)))))
+ => "{elips-mode : {foo : {bar -> booze}, baz -> qux}, c-mode : {foo ->
bla, bum -> bam}}")
(defexamples -clone
(let* ((a '(1 2 3)) (b (-clone a))) (nreverse a) b) => '(1 2 3)))
- [elpa] externals/dash 1e2bd96 233/426: Merge pull request #48 from Fuco1/index-operations, (continued)
- [elpa] externals/dash 1e2bd96 233/426: Merge pull request #48 from Fuco1/index-operations, Phillip Lord, 2015/08/04
- [elpa] externals/dash d1913c6 210/426: Merge pull request #41 from Wilfred/master, Phillip Lord, 2015/08/04
- [elpa] externals/dash b4d84de 243/426: Add debug declarations for `-when-let`s and `-if-let`s, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6d43c4f 235/426: Fix switched around doc strings for -find-index/indices, Phillip Lord, 2015/08/04
- [elpa] externals/dash 459322d 244/426: Update docs, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9936885 245/426: Merge pull request #51 from Fuco1/debug-decl, Phillip Lord, 2015/08/04
- [elpa] externals/dash 0f4cae9 249/426: Improve docs, Phillip Lord, 2015/08/04
- [elpa] externals/dash 23ab726 227/426: Improve formatting of docs, Phillip Lord, 2015/08/04
- [elpa] externals/dash f4ba8db 252/426: Add -snoc, Phillip Lord, 2015/08/04
- [elpa] externals/dash bf85b21 242/426: Change &optional branches to &rest branches in `-if-let`s, Phillip Lord, 2015/08/04
- [elpa] externals/dash bf99147 247/426: Fix `-tree-mapreduce-from` test & reformat the tests,
Phillip Lord <=
- [elpa] externals/dash 75efb60 246/426: Add tree map/reduce, Phillip Lord, 2015/08/04
- [elpa] externals/dash 2ee84cb 251/426: Release 2.3.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash ab727ba 257/426: Correct anchors for links starting with '!', Phillip Lord, 2015/08/04
- [elpa] externals/dash 8052eb9 253/426: Merge pull request #55 from Fuco1/snoc, Phillip Lord, 2015/08/04
- [elpa] externals/dash d8ccf85 254/426: Add replace/update/remove functions for index/indices, Phillip Lord, 2015/08/04
- [elpa] externals/dash ba6e3c6 260/426: Add missing keywords, Phillip Lord, 2015/08/04
- [elpa] externals/dash 87bcbc8 261/426: Merge pull request #59 from Fuco1/add-keywords, Phillip Lord, 2015/08/04
- [elpa] externals/dash 094fdea 262/426: Merge pull request #58 from Fuco1/fontlock-custom, Phillip Lord, 2015/08/04
- [elpa] externals/dash ca9b296 263/426: Add Cask-file., Phillip Lord, 2015/08/04
- [elpa] externals/dash 3bbaed5 256/426: Release 2.4.0, Phillip Lord, 2015/08/04