Erik Ogan
1597b2f912
minor grammar nit
2010-09-19 16:53:17 -07:00
Jim Weirich
57f0f4f178
Updated koans from source.
2010-09-12 21:33:11 -04:00
Greg Mefford
b0e34a90e0
Cleaned up some messy File housekeeping.
2010-09-12 17:07:22 -04:00
Jim Weirich
b0a01786f4
Updated koan directory from src.
2010-08-27 09:44:10 -04:00
Rene Mendoza
1f6c0e03a5
Color support for Ruby Koans
2010-08-27 09:38:09 -04:00
Rene Mendoza
06c47eb284
Added autotest support and added colorized output of tests
2010-08-27 09:37:33 -04:00
Jim Weirich
36f93c6c63
Updated koans with changed from src.
2010-08-26 07:58:28 -04:00
Jim Weirich
1b31a5b4dc
Updated koans from new regex section.
2010-08-22 02:03:17 -04:00
Jim Weirich
9c0ccd53a2
Merge branch 'master' of git://github.com/JEG2/ruby_koans into numeric
...
* 'master' of git://github.com/JEG2/ruby_koans:
Adding Regular Expression koans.
Fixing a bug that was causing some number Koans to be presolved.
2010-08-22 01:36:28 -04:00
James Edward Gray II
9a459a7eb3
Adding Regular Expression koans.
2010-08-21 22:11:06 -05:00
James Edward Gray II
e1ada6ca9f
Fixing a bug that was causing some number Koans to be presolved.
2010-08-21 15:34:54 -05:00
Jonathan Castello
a5180d9ea1
Typo fix: changed "parenthesis" to "parentheses"
2010-08-21 11:32:57 -07:00
Jim Weirich
7db19b5e92
White space fixes
2010-08-21 09:01:10 -04:00
Jonathan Castello
7c52931392
With 'test_in_ruby_1_8_single_characters_are_represented_by_strings', changed the name to use '1.9', since it's in an in_ruby_version("1.9") block. (Confused me for a good while.)
2010-08-21 01:33:13 -07:00
Jim Weirich
eee3429394
Updated the koans directory.
2010-08-16 16:57:13 -04:00
Jim Weirich
8ef93f1d3a
UPdated koans to match latest source.
2010-08-16 15:06:12 -04:00
Jim Weirich
56206e0a41
Removed unneeded check for no args.
2010-04-20 16:26:57 -04:00
Jim Weirich
308ad5d9c5
Added constants to koans path to enlightenment.
2010-04-20 16:26:18 -04:00
Jim Weirich
c40424e9a4
Updates source to be consistent with the _n_ changes.
2010-04-20 16:25:19 -04:00
Jim Weirich
f0b1560f34
Added about_constants
2010-04-20 16:17:34 -04:00
Jim Weirich
1d1ab85777
Generated new koans directory.
2010-01-15 09:53:28 -05:00
Jim Weirich
6052c776bc
Use .values rather than .keys in values test ( http://www.pivotaltracker.com/story/show/2177802 )
2010-01-14 14:31:30 -05:00
Jim Weirich
425fd41fbc
Fixed misspelling of "multiple" ( http://www.pivotaltracker.com/story/show/2072574 )
2010-01-03 06:27:59 -05:00
Jim Weirich
bdc9e2a772
Renamed explict to explicit ( http://www.pivotaltracker.com/story/show/2070657 )
2010-01-02 22:25:05 -05:00
Jim Weirich
e21e46bdf9
Renamed test ( http://www.pivotaltracker.com/story/show/2072574 )
2010-01-02 22:22:38 -05:00
Jim Weirich
a22b5fe9dc
Some minor reformatting.
2010-01-02 22:21:33 -05:00
Jim Weirich
f68bd3ca8f
Updated try ruby link
2010-01-02 22:21:12 -05:00
Jim Weirich
e639fb315f
Added pivotal tracker address to readme.
2010-01-02 22:20:54 -05:00
Jim Weirich
3958b3c9e5
Updated first test to properly fail on the first run.
2009-12-22 22:31:55 -05:00
Jim Weirich
690ca4c022
Updated Readme with ref to about_asserts.
2009-12-22 22:26:04 -05:00
Jim Weirich
26639d58ec
Fixed typos in Greed Rules.
2009-12-22 22:25:47 -05:00
Jim Weirich
5e2f80770d
Added Main readme to koan directory.
2009-12-21 16:31:42 -05:00
Jim Weirich
f05d9ee1ac
Merged src directory with existing koans.
2009-12-21 16:17:32 -05:00
Bret Pettichord
f3af22b96f
rename file to match the name of its Koan class
2009-10-12 23:46:33 -05:00
Ken Barker
9563a4ef27
Add preceding bang to make first test fail
...
Seems in-line with the other koans at this point
to require the student remove the bang.
2009-10-09 18:06:47 -04:00
RFelix
8de356c598
Removed duplicated array assignment tests from about_arrays.rb which are also in about_array_assignment.rb
2009-10-08 13:24:13 -04:00
Robert Osborne
e225b1612c
fixed typoo in def test_any_ruby_expression_my_be_interpolated
2009-10-08 13:19:07 -04:00
Robert Osborne
b3226809ad
method name test_if_then_else_statements was duplicated, overwriting the first def.
2009-10-08 13:18:41 -04:00
Robert Osborne
dbaadf80b7
Edited GREED_RULES
2009-10-08 13:17:00 -04:00
capitalist
e871052dd3
Fix typo
2009-10-08 13:09:14 -04:00
capitalist
41ef277f40
Fixed typo and faulty expectation.
...
There are three twos = 200 and one five = 50 => so this should be 250
Also, here's my score method - I feel like I over complicated this:
# def score(dice)
# #count em up
# results = dice.inject(Hash.new) {|h, die| h[die] = h[die] ? h[die] + 1 : 1; h }
#
# #convert to scores
# score = results.keys.inject(0) do |s,k|
# s += \
# case k
# when 1
# results[k] >= 3 ? 1000 + (results[k]-3)*100 : results[k] * 100
# when 2..4,6
# results[k] >= 3 ? 100*k : 0
# when 5
# results[k] >= 3 ? 500 + (results[k]-3)*50 : results[k] * 50
# else
# 0
# end
# end
# end
2009-10-08 13:08:45 -04:00
Marc Peabody
d9e77d26f2
Merge branch 'master' of git://github.com/caius/ruby_koans into caius/master
2009-10-08 10:35:50 -04:00
Marc Peabody
17ac70bd4d
hash keys and values must assert against sorted arrays - thanks gregmalcolm
2009-10-08 10:16:57 -04:00
unknown
f9017915dc
Cleanup of "cross method" test on the Bulldog, by removing the unfinished test and also Bulldog.growl method, which becomes obsolete.
2009-03-17 21:57:25 -04:00
unknown
fcf5bd860d
I renamed the class to AboutTriangleAssignment2 as this was messing with the testing order.
...
Using the same class name as the other Triangle Assignment was affecting the testing order, causing this assignment to show up before about_exceptions.
2009-03-17 21:50:41 -04:00
unknown
d8d1d4cc64
Provided an alternative test_hash_keys_and_values function.
...
Asserts on hash.keys or hash.values can not be relied on as the order is random (I had an expected values of [:two, :one] when I got to that test).
2009-03-17 21:38:05 -04:00
Caius Durling
77013b1afd
Assigning a variable so the test passes when correct code is added.
2009-02-07 02:13:34 +00:00
Jonathan Lim
9e799a7178
Ensuring method names unique.
...
Ensuring that later class method definitions don't mess with earlier tests.
Renaming test to reflect that other objects are not affected by singleton methods on objects.
Signed-off-by: edgecase <github@theedgecase.com >
2009-01-29 02:22:42 +08:00
Jonathan Lim
4b65b1f52d
Fixing scores
...
Signed-off-by: edgecase <github@theedgecase.com >
2009-01-29 02:22:41 +08:00
Joe O'Brien
7d59878eaa
moving files around a bit
2009-01-26 12:11:46 -05:00