Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Commits on Nov 20, 2009
Commits on Oct 13, 2009
  1. @bret
Commits on Oct 9, 2009
  1. Add preceding bang to make first test fail

    Ken Barker authored
    Seems in-line with the other koans at this point
    to require the student remove the bang.
Commits on Oct 8, 2009
  1. @coreyhaines

    fix url for tryruby

    coreyhaines authored Marc Peabody committed
  2. @rfelix

    Removed duplicated array assignment tests from about_arrays.rb which …

    rfelix authored Marc Peabody committed
    …are also in about_array_assignment.rb
  3. re-wrote a bit of explanation of red/green/refactor

    Robert Osborne authored Marc Peabody committed
  4. fixed typoo in def test_any_ruby_expression_my_be_interpolated

    Robert Osborne authored Marc Peabody committed
  5. method name test_if_then_else_statements was duplicated, overwriting …

    Robert Osborne authored Marc Peabody committed
    …the first def.
  6. Edited GREED_RULES

    Robert Osborne authored Marc Peabody committed
  7. @capitalist

    Fix typo

    capitalist authored Marc Peabody committed
  8. @capitalist

    Fixed typo and faulty expectation.

    capitalist authored Marc Peabody committed
    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
Commits on Mar 18, 2009
  1. Cleanup of "cross method" test on the Bulldog, by removing the unfini…

    unknown authored
    …shed test and also Bulldog.growl method, which becomes obsolete.
  2. I renamed the class to AboutTriangleAssignment2 as this was messing w…

    unknown authored
    …ith 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.
  3. Provided an alternative test_hash_keys_and_values function.

    unknown authored
    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).
Commits on Feb 7, 2009
  1. @caius
Commits on Jan 28, 2009
  1. @snowblink

    Ensuring method names unique.

    snowblink authored edgecase committed
    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>
  2. @snowblink

    Fixing scores

    snowblink authored edgecase committed
    Signed-off-by: edgecase <github@theedgecase.com>
Commits on Jan 26, 2009
  1. adding attribution and another tweak to the wording

    Joe O'Brien authored
  2. small formatting tweak

    Joe O'Brien authored
  3. no comment

    Joe O'Brien authored
  4. almost finished with the readme. At what point do we begin splitting …

    Joe O'Brien authored
    …them into chapters
  5. still tweaking readme

    Joe O'Brien authored
  6. moving files around a bit

    Joe O'Brien authored
  7. changing readme to get formatted on GH; adding license

    Joe O'Brien authored
  8. moving to a new repo

    Joe O'Brien authored
  9. first commit

    Joe O'Brien authored
Something went wrong with that request. Please try again.