Commit graph

52 commits

Author SHA1 Message Date
Yann Esposito (Yogsototh)
17f6f0e9a5
added filterv rule 2016-06-14 09:03:04 +02:00
Yann Esposito (Yogsototh)
a07b90a8b1
fix tests 2016-06-13 22:18:40 +02:00
James Brennan
6be43fb040 Suggest vary-meta in place of (with-meta a (f (meta a) ,,,)) 2016-04-03 19:15:53 -07:00
Daniel Compton
03997ac15a Merge pull request #129 2015-04-20 14:22:42 +12:00
Lukasz Kozuchowski
93f46582b3 Bug fix: wrong simplifications of (assoc ... (assoc ... 2015-04-11 12:47:07 +02:00
Jay A. Patel
c969207892 Added rules for true? and false?
Instead of (= true ?x), consider (true? ?x). Same for false?
2014-12-19 19:05:48 -08:00
Daniel Compton
b76a1f4965 Add tests for class symbols 2014-11-25 15:41:46 +13:00
Daniel Compton
2220f694f1 Upgrade core.logic dependency to 0.8.9
Also upgrade tools.cli, and lein-marginalia
2014-11-25 14:45:39 +13:00
Daniel Compton
087a6753a1 Remove Math/pow rules until we can add metadata
to them. Math/pow always returns a Double, where (* x y) will return a
Long if x and y are both Long. Once we have metadata available we can
add a comment warning people about this and add the Math/pow
transformations back in.
2014-11-12 09:53:49 +13:00
Linus Ericsson
5f442bc393 added java.lang.Math-functions pow, hypot, round, expm1 and trivial identities 2014-11-12 09:39:34 +13:00
Daniel Compton
cc6b4dd509 Merge pull request #95 from thomasmulvaney/missing-neg-case
Added missing negative case
2014-11-08 22:14:46 +13:00
Daniel Compton
514c5871cc Add clojurescript, cljx, e.t.c. support
Fixes #67
2014-09-24 23:05:47 +12:00
Martin Clausen
39365cf7e4 Update collections.clj
Added tests for nested calls to assoc.
2014-07-22 23:14:03 +02:00
Thomas Mulvaney
f8a67a390d Added missing negative case 2014-06-26 14:33:44 +02:00
Jennifer Smith
681a86d641 Fixes the equality tests which were suggesting a pos? replacement for <= x 1 . This rule was removed in ab491e3 as it didn't work for float comparison. 2014-05-03 19:52:03 +10:00
Jonas Enlund
9ce9f80661 Merge pull request #81 from borkdude/master
Added a rule to match if-not/do -> when-not
2014-05-01 16:44:08 +03:00
TAllen
16c230d5df Implemented issue #90 (if ?x ?x ?y) -> (or ?x ?y) 2014-04-04 01:45:25 -07:00
Michiel Borkent
c6c6a9f971 Added rule to match if-not/do -> when-not 2013-03-17 15:27:04 +01:00
Ryan McGowan
1227ba1fe4 Test reporters' output. 2013-02-05 19:59:46 -05:00
Jonas Enlund
7eb98f19ea Removed some unlikely rules 2013-01-26 08:23:16 +02:00
Jonas Enlund
ea1e0325d4 Merge pull request #70 from Raynes/master
Added a rule for (apply str ..)
2013-01-25 21:43:54 -08:00
Anthony Grimes
8424bb2b20 Add a new rule for plain (apply str ..) and a test. 2013-01-25 15:27:43 -06:00
Darrick Wiebe
926f093b24 I've done this 2013-01-25 14:50:13 -05:00
fogus
f9bca5ef5d Added another filter pattern and test. 2013-01-25 08:08:15 -05:00
Jonas Enlund
453b02afd1 Merge pull request #58 from sjl/master
Rule for (= nil x) -> (nil? x)
2012-11-08 23:38:58 -08:00
Steve Losh
760feec11a Add a rule for (= nil x) -> (nil? x) 2012-11-09 00:33:03 -05:00
Bjarte Johansen
cba0a329a8 Remove do binding in loop form
loop provides implicit do form in construct.
2012-10-18 14:51:26 +02:00
Jonas Enlund
e1845b6ef0 Revert "Merge pull request #55 from edtsech/if-true-or"
This reverts commit 72432a0764, reversing
changes made to 25cf9d92ae.
2012-10-16 17:33:01 +03:00
Edward Tsech
7428264f7f Rule for (if test true else). 2012-10-16 11:36:09 +02:00
Bjarte Johansen
24ff7fd6ea Remove do binding in let form
do binding in let form is not neccessary as let provides an implicit do
form.
2012-09-20 12:06:49 +02:00
Jonas Enlund
b085c01c4f Added 'repeatedly' rule as suggested in issue #48 2012-08-25 20:27:31 +03:00
Steve Losh
c450d1da60 (update-in ... assoc ...) should be (assoc-in ...) 2012-07-14 14:47:18 -04:00
Steve Losh
b270b09a9e Add update-in suggestions.
I often forget that update-in exists.  This change adds a rule to remind people
of it for a few simple cases.
2012-07-10 17:25:27 -04:00
Steve Miner
d68221fdcc (when-not (empty? x) body) should be (when (seq x) body) 2012-07-09 17:45:17 -04:00
Steve Miner
cc83a68c1b prefer (seq x) over (not (empty? x)) 2012-07-08 16:01:04 -04:00
Jonas Enlund
dacbdd14f2 Merge pull request #43 from duelinmarkers/fix-dot-rule-when-member-is-a-list
Handle list member-access in dot form. Fixes #33.
2012-06-26 08:21:47 -07:00
John Hume
2a899b452a Handle list member-access in dot form. Fixes #33. 2012-06-10 23:03:48 -04:00
John Hume
c45be0724b Fix 'remove suggestion for anonymous fns, issue #39. 2012-06-10 21:39:22 -04:00
John Hume
d7dc246e99 Add minimal test coverage for all rules 2012-06-10 21:04:43 -04:00
John Hume
3b5cac7c86 More complete test coverage for control-structures
This covers all but the (loop [] ...) rule, which seems to include the
(recur) in the body of the suggested (when...) form.
2012-06-10 19:29:14 -04:00
Paul deGrandis
3a4b27220b Test updates to also test simplify directly 2012-03-26 08:13:02 -04:00
Paul deGrandis
9fe63a2f90 Tests are updated to use check 2012-03-25 23:33:00 -04:00
Paul deGrandis
76208194fa Updating tests 2012-03-25 16:28:37 -04:00
Paul deGrandis
9278b06a46 Kibit can now continually apply rules on a form until no further alternatives can be made 2012-03-23 01:44:15 -04:00
Paul deGrandis
bd4d88a5d0 quick tests to capture the difference between simplify and simplify-one 2012-03-21 21:06:07 -04:00
Paul deGrandis
0cb58d7e2c Updated the tests given the new changes 2012-03-19 18:08:31 -04:00
Paul deGrandis
7fe782a413 Tests to make sure I never break the seq code again 2012-03-09 09:08:31 -05:00
Paul deGrandis
2c34ac1c21 Commented out tests until check-form can continually apply rules 2012-03-09 09:07:55 -05:00
Paul deGrandis
c811961f56 Updated tests for new unify-alt 2012-03-07 11:45:12 -05:00
Paul deGrandis
46180fb1af Added a rule for pointless/sloppy if statements 2012-03-05 12:42:03 -05:00