Commit Graph

30 Commits

Author SHA1 Message Date
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