Mike Jansen
45ea6e3441
update maps koans with 2018 Olympics
2014-11-26 16:19:04 -06:00
Colin Jones
04b3c4a960
Bump koan-engine dependency
...
Also eliminates some ns forms that we can do without now.
Closes #71
2014-05-02 16:39:13 -05:00
David Kinzer
711925a043
Add name-spaces to the clojure koans files.
...
This commit adds two name-spaces to beginning of the clojure koan files
in order to fix an issue both #68 and #69 .
2014-05-02 16:38:17 -05:00
Colin Jones
fd3972dd78
Merge pull request #74 from ajmccluskey/21-remove-partial
...
Remove unnecessary call to partial in second koan
2014-04-25 14:31:13 -05:00
Mike Jansen
eaf6cd6f80
fix spacing issue in 05_maps.clj
2014-04-25 14:11:18 -05:00
Andrew McCluskey
569aa5e85b
Remove unnecessary call to partial in second koan
...
juxt returns a function that takes a variable number of arguments, so a
partial taking one argument does not need to be created.
2014-03-19 21:59:40 +07:00
Gunnlaugur Thor Briem
a1e659bc29
Trivial: fix Hawking's first name
2014-01-27 09:52:03 +00:00
Colin Jones
86a6790ae4
Clean up group-by descriptions & spelling
2014-01-21 08:09:02 -06:00
Takayuki Goto
d6b1b57942
group-by function koan
2014-01-21 08:08:26 -06:00
Colin Jones
f35e258e7f
Update answer key to reflect renaming
2014-01-21 07:43:05 -06:00
Kyle VanderBeek
e96ccc4494
Switch variable from index to x to avoid confusing syntax highlightig.
...
index is a clojure.set function and ended up highlighted for me, sending me
down a rabbit hole of confusion. Avoid this with a more generic variable name
consistent with other Koan files.
2014-01-21 07:35:12 -06:00
Attila Domokos
68dcde939e
Make if-not example clearer, fix the answer keys
...
I felt the example wasn't very clear as the conditional returned the
quoted form of `doom` when it evaluated to true or false. This way the
user needs to find a value that satisfies the if-not conditional so it
returns `doom` and not `more-doom`.
2014-01-21 07:23:03 -06:00
Colin Jones
0cf4cd3121
Move herbivore assertions together
2014-01-21 07:14:27 -06:00
Tobias Pfeiffer
92c7f8b2f0
Added one test to the polymorph suite (test name usage)
...
* added one tests that verifies that the diet function also
accesses the name value of the map (before it was possible
to just return "Bambi eats veggies." for the herbivore diet
* since this is not the main purpose of these specs added just
this one and not extra specs for default/carnivore as I didn't
want to bloat it, but could add those as well if desired
2014-01-21 07:14:18 -06:00
Chris Cummins
5c27ca25cc
Minor grammar fix
2014-01-09 01:14:08 +00:00
Colin Jones
0675850ae7
Merge pull request #61 from drguildo/grammar-fixes
...
A few grammatical changes.
2013-11-18 10:44:34 -08:00
Simon Morgan
8c0d3f885c
A few grammatical changes.
2013-11-18 17:29:13 +00:00
Laura Brown
f60275e6e4
Update 05_maps.clj
...
"Often you will need to get the keys, but the order is undependable"
The keys value pairs are already ordered by key. Why not make the original map un-ordered to force the user to think about sorting them?
"You can get the values in a similar way"
Two of the three values are already provided in the answer, the answer to this challenge can be arrived at by providing the missing one through process of elimination without thinking about sorting.
2013-09-18 08:45:07 -05:00
Bob Williams
c5ef11690e
rearranging map keys to prove sort function
2013-09-18 09:13:54 -04:00
David Kinzer
f9268e81bf
Fix spelling.
2013-08-04 00:59:37 +00:00
Colin Jones
f0bdefe972
Improve grammatical flow
...
refs #51
2013-07-24 19:39:17 -05:00
Marshall Shen
6fb62d5c79
add one more problem in function exercise
2013-07-22 10:55:09 -05:00
Hannes Johansson
8cd9d64ad0
Added missing word in comment for koan 11
2013-03-15 23:35:41 +01:00
Micah Martin and Colin Jones
559f2e2c58
Take pity and clarify higher-order fns a bit
2013-03-04 17:51:31 -06:00
Micah Martin and Colin Jones
bef513721d
Clarify wording in maps
2013-03-04 17:33:46 -06:00
Micah Martin and Colin Jones
28bf698566
Clarify keywords, symbols, maps, sets
2013-03-04 17:30:00 -06:00
Micah Martin and Colin Jones
d275ab804d
Leave out vec nil for now
2013-03-04 17:10:04 -06:00
Micah Martin and Colin Jones
bd4bcad22a
Add some nil exposition
2013-03-04 17:06:46 -06:00
Micah Martin and Colin Jones
25b2f11247
Clarify empty lists & other list operations
2013-03-04 16:59:01 -06:00
Micah Martin and Colin Jones
2e3fead03f
Clarify equalities a bit
2013-03-04 16:45:55 -06:00
Colin Jones
7ab93a0c38
Touch up some grammar & wording
2013-02-25 20:46:19 -06:00
Brian L. Troutwine
567031f48e
Correct 'is' to 'are' in koan description.
...
I don't mean to be That Guy, but it's more correct to use 'are', rather than 'is' when discussing a plural subject.
2013-01-26 19:28:46 -08:00
Colin Jones
26c6609d5d
Fix a few description typos
2013-01-05 15:18:45 -06:00
Ignacy Moryc
626f97de8f
Add koans for partition function
2012-08-04 08:53:45 -05:00
Colin Jones
78c5704f34
Rename to use underscores instead of dashes
...
Works fine either way - this is just since underscores are required
in filenames for real projects, so it's something good for folks to
get used to.
2012-06-08 15:22:42 -05:00
Noam Yorav-Raphael
d7c093d2c8
Rename koan files to start with a number, to give the learner a feeling of progress.
2012-06-08 15:22:42 -05:00
Colin Jones
b83e14359b
Fix grammar problem, closes #23
...
Thanks to @jamieorc for reporting.
2012-03-03 12:44:26 -06:00
Luke Arno
5627b8d37b
Issue #21 : Go deeper... deeper... in final recursion koan
2012-01-13 15:19:15 -08:00
Sam Ritchie
337d39684a
Extracted koan logic out into koan-engine.
2011-11-27 17:55:14 -06:00
Aaron Bedra
3cca560b96
Reformatting for consistency
2011-10-25 22:55:54 -04:00
Colin Jones
652cc6d29c
Fix auto-runner for exceptions without causes or messages, fixes #16
2011-09-23 14:55:06 -05:00
Doug South
5e1fe2f23a
More idiomatic keywords
2011-09-23 12:59:29 -04:00
Colin Jones
ada3d8541f
Fix non-failing koan, fixes #14
2011-08-13 12:20:39 -05:00
Colin Jones
0978ffad12
Fix ensure-failing-without-answers, per Caleb Phillips' macro-replacement idea
2011-08-13 12:16:34 -05:00
Colin Jones
fb3f05e2c6
Add first cut at Java interop
2011-07-08 15:57:44 -05:00
Colin Jones
d7d54f1a08
Remove unnecessary whitespace
2011-06-17 14:57:00 -05:00
Colin Jones
da56dd5ae0
Improve docs and output about auto-runner
2011-06-16 18:01:43 -05:00
Colin Jones
21295e2079
Completely remove dependency on return value from meditations
2011-06-16 17:48:13 -05:00
Colin Jones
8e33a43ee8
Catch exceptions that happen before the assertion can be made
2011-06-16 17:47:28 -05:00
Colin Jones
02b00bafd7
Fix runner freezing after first correct koan
...
Many thanks to Patrick Gombert for finding the bug
2011-06-16 11:55:04 -05:00
Colin Jones
e6174d80dc
Remove clojure.test dependencies
2011-06-10 22:22:04 -05:00
Colin Jones
5a5f519fb8
Fix already-passing koans
2011-06-10 22:11:45 -05:00
calebphillips
5060b421c7
Updated example in conditionals that was passing without change.
...
"And in such a situation you may have nothing"
2011-06-09 16:27:59 -05:00
Colin Jones
4038946c14
Fix frozen autorunner issue on compiler exceptions
2011-05-12 18:14:22 -05:00
Colin Jones
c2c9a15cea
Split freshener and koan ordering out into namespaces.
2011-04-29 23:12:28 -05:00
Colin Jones
3644a48bcd
Introduce the auto-refreshing runner via fresh.
2011-04-29 22:54:49 -05:00
Colin Jones and Mike Jansen
7408b164fc
Add case.
2011-04-29 15:34:17 -05:00
Colin Jones
ff7623f2ad
Fix file / line reporting for lazy defn loading, fixes #11 .
2011-04-19 09:02:41 -05:00
Colin Jones
99eb97266c
Fix clojure version parsing, due to the junit exclusion.
2011-04-13 19:19:50 -05:00
Colin Jones
1dd2e9ca86
Add a recursive list processing example.
2011-03-31 17:36:49 -05:00
Colin Jones
7d9fb046bb
Start on lazy seqs.
2011-03-31 08:11:27 -05:00
Colin Jones
717207339f
Add atoms.
2011-03-31 07:44:54 -05:00
Colin Jones
0c286f1686
Provide example of coordinated ref update.
2011-03-31 07:24:09 -05:00
Colin Jones
ae28d1dd98
Standardize whitespace a bit more.
2011-02-13 19:53:25 -06:00
Alex Robbins
a395f47b86
Use interpose instead of interleave to add spaces between words.
2011-02-13 19:21:15 -06:00
Colin Jones
ebe856b45d
Add datatypes.
2011-02-10 19:13:52 -06:00
Colin Jones
c604126a4e
Separate expected-failing and -passing concerns.
2011-02-08 16:07:36 -06:00
Colin Jones
21c911f0a4
Make all existing tests fail before input is added.
2011-02-08 15:57:15 -06:00
Colin Jones
6948ed6ec8
Find tests that pass too easily in test run.
2011-02-08 15:51:05 -06:00
Colin Jones
ddbb9971fd
Move r-infix blanks to the macro itself.
2011-02-08 07:51:41 -06:00
Colin Jones
b7d3022b77
Allow r-infix to work with more than 2 operands.
2011-02-08 07:46:48 -06:00
Colin Jones
bc9113fe60
Tweak wording very slightly for new macros koans.
2011-02-08 07:20:38 -06:00
Jaskirat
0c0ab4e457
Added macros.clj and updated the path_to_answer_sheet & path_to_enlightenment for the same.
2011-02-08 17:21:11 +05:30
Colin Jones
f29e547f2a
Allow nil as an answer.
2011-02-03 12:26:58 -06:00
Colin Jones
1648d9e94a
Avoid nil answer, but allow it to fail if it's wrong. Fixes #6 .
2011-02-03 12:00:03 -06:00
Alex Robbins
94bde7de20
Fixing hard-coded answer to functions question.
2011-02-03 11:16:47 -06:00
Colin Jones
8a9a957a62
Parse required clojure version out of project.clj to avoid duplication.
2011-01-12 16:38:04 -06:00
Ben Lickly
a987607134
Added check of sufficiently new clojure version.
...
This should prevent users of old clojure versions
from running koans and getting strange results.
2011-01-11 14:48:26 -08:00
Michael Kohl
f4a5cd7cad
Spelling
2011-01-03 23:12:39 +01:00
Colin Jones
4c74b1b50b
Add Micah to the contributor list & fix a couple typos.
2010-11-17 09:55:16 -06:00
Micah
b55332f4a8
added to the creating-fuctions sheet
2010-11-16 22:23:33 -06:00
Colin Jones
3bba4879db
Add map destructuring.
2010-11-11 18:16:55 -06:00
Colin Jones
a7f7df6f01
Get users to write ref mutations themselves.
2010-11-10 19:16:50 -06:00
Colin Jones
a8dc9b36bb
Refs. We has them.
2010-11-09 20:19:10 -06:00
Colin Jones
af19d14c40
Finish off vector destructuring features.
2010-11-08 18:07:59 -06:00
Colin Jones
98b7ab99fe
Add another simple destructuring example.
2010-11-08 17:27:18 -06:00
Colin Jones
345df3d6d0
Add some background knowledge to the recursion section.
2010-11-07 10:17:58 -06:00
Colin Jones
cf4162ece6
Short start on destructuring.
2010-11-06 17:38:31 -05:00
Colin Jones
b340cb6ccb
Multiple-argument #() syntax.
2010-11-05 17:33:06 -05:00
Colin Jones
7e6ac00457
Use forms instead of strings where possible in answer sheet.
2010-11-04 08:10:24 -05:00
Colin Jones
47d4342314
Show not= and collection equality.
2010-11-04 08:01:34 -05:00
Colin Jones
fa90fc7e86
Add cond; fix typo.
2010-11-03 20:38:20 -05:00
Colin Jones
abcd170b34
Add recursion / factorial koan.
2010-11-02 22:55:34 -05:00
Colin Jones
87e25afc1e
Some cleanup & adding a better-syntax of the function toughie.
2010-11-02 22:29:45 -05:00
Colin Jones
9b65b6d0fc
Eliminate .size in favor of count.
2010-10-29 10:45:47 -05:00
Colin Jones
2e6ee5ddea
Include new equality rules for floats.
2010-10-29 10:18:09 -05:00
Colin Jones
fe1f96b8c0
Upgrade to Clojure 1.3.0-alpha1.
2010-10-29 10:07:11 -05:00
Colin Jones
3bce0bd3ee
Update answer key for sets addition.
2010-10-27 17:30:34 -05:00
Nuno Marques
3c6478e5da
forgot to update sets as well
...
Signed-off-by: Colin Jones <trptcolin@gmail.com>
2010-10-27 17:29:45 -05:00
Nuno Marques
1d09a984e7
changed the order of some exercises and removed a confusing map entry
...
Signed-off-by: Colin Jones <trptcolin@gmail.com>
2010-10-27 17:27:31 -05:00