Merge pull request #111 from smlance/changes-1

Minor changes to existing koan files
This commit is contained in:
Jim Weirich
2013-07-10 14:36:28 -07:00
4 changed files with 4 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ class AboutBlocks < Neo::Koan
add_one = lambda { |n| n + 1 }
assert_equal __(11), add_one.call(10)
# Alternative calling sequence
# Alternative calling syntax
assert_equal __(11), add_one[10]
end

View File

@@ -56,7 +56,7 @@ class AboutDiceProject < Neo::Koan
#
# If the rolls are random, then it is possible (although not
# likely) that two consecutive rolls are equal. What would be a
# better way to test this.
# better way to test this?
end
def test_you_can_roll_different_numbers_of_dice

View File

@@ -37,7 +37,7 @@ class AboutMethods < Neo::Koan
#
end
# NOTE: wrong number of argument is not a SYNTAX error, but a
# NOTE: wrong number of arguments is not a SYNTAX error, but a
# runtime error.
def test_calling_global_methods_with_wrong_number_of_arguments
exception = assert_raise(___(ArgumentError)) do

View File

@@ -1,7 +1,7 @@
require File.expand_path(File.dirname(__FILE__) + '/neo')
# You need to write the triangle method in the file 'triangle.rb'
require 'triangle.rb'
require_relative 'triangle.rb'
class AboutTriangleProject < Neo::Koan
def test_equilateral_triangles_have_equal_sides