From ea66a6d175414f7166ec4026339a4ef55675ba59 Mon Sep 17 00:00:00 2001 From: smlance Date: Tue, 9 Jul 2013 09:40:01 -0400 Subject: [PATCH 1/3] Initial minor changes (grammatical in methods; require -> require_relative in tri...). --- src/about_methods.rb | 2 +- src/about_triangle_project.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/about_methods.rb b/src/about_methods.rb index 2a1c3fa..bd6d8b3 100644 --- a/src/about_methods.rb +++ b/src/about_methods.rb @@ -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 diff --git a/src/about_triangle_project.rb b/src/about_triangle_project.rb index ec2447c..0bf2aa9 100644 --- a/src/about_triangle_project.rb +++ b/src/about_triangle_project.rb @@ -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 From 4e5b9ca9698989dd7c51e9d24e4e97a0602ad274 Mon Sep 17 00:00:00 2001 From: smlance Date: Tue, 9 Jul 2013 09:44:01 -0400 Subject: [PATCH 2/3] Fixed another small grammatical mistake (. to ? in dice file) --- src/about_dice_project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/about_dice_project.rb b/src/about_dice_project.rb index 98717ba..b458147 100644 --- a/src/about_dice_project.rb +++ b/src/about_dice_project.rb @@ -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 From cf615027345e1a73c2258d14acbe55dc363889a5 Mon Sep 17 00:00:00 2001 From: smlance Date: Tue, 9 Jul 2013 09:57:17 -0400 Subject: [PATCH 3/3] Made a minor readability change to a comment in about_blocks.rb --- src/about_blocks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/about_blocks.rb b/src/about_blocks.rb index af6f207..fa06eab 100644 --- a/src/about_blocks.rb +++ b/src/about_blocks.rb @@ -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