diff options
author | Sean Allred <code@seanallred.com> | 2015-01-01 14:19:58 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2015-01-01 14:19:58 -0500 |
commit | 7d73bc8b9da4a093b0a3b477da81252d5b805ca5 (patch) | |
tree | dc6b019f5f1e3759a108d53e17c76f3a9de37bf9 /test/test-util.el | |
parent | 1518cee93ef2d33af9ddf214ae1c181d02c7b94f (diff) |
Prune sx--filter-data
Diffstat (limited to 'test/test-util.el')
-rw-r--r-- | test/test-util.el | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/test/test-util.el b/test/test-util.el index 49df274..5db1691 100644 --- a/test/test-util.el +++ b/test/test-util.el @@ -1,38 +1,3 @@ -(ert-deftest test-tree-filter () - "Test `sx-core-filter-data'" - ;; flat - (should - (equal - '((1 . t) (2 . [1 2]) (3)) - (sx--filter-data '((0 . 3) (1 . t) (a . five) (2 . [1 2]) - ("5" . bop) (3) (p . 4)) - '(1 2 3)))) - ;; complex - (should - (equal - '((1 . [a b c]) - (2 . [((a . 1) (c . 3)) - ((a . 4) (c . 6))]) - (3 . peach)) - (sx--filter-data '((1 . [a b c]) - (2 . [((a . 1) (b . 2) (c . 3)) - ((a . 4) (b . 5) (c . 6))]) - (3 . peach) - (4 . banana)) - '(1 (2 a c) 3)))) - - ;; vector - (should - (equal - [((1 . 2) (2 . 3) (3 . 4)) - ((1 . a) (2 . b) (3 . c)) - nil ((1 . alpha) (2 . beta))] - (sx--filter-data [((1 . 2) (2 . 3) (3 . 4)) - ((1 . a) (2 . b) (3 . c) (5 . seven)) - ((should-not-go)) - ((1 . alpha) (2 . beta))] - '(1 2 3))))) - (ert-deftest thing-as-string () "Test `sx--thing-as-string'" (should |