Permalink
Browse files

Normalized file name and koan category name.

  • Loading branch information...
1 parent 8d82873 commit ad99c372c32408daee9f5c95d38f2ad736bce621 @jimweirich jimweirich committed Sep 13, 2010
View
2 src/about_dice_project.rb
@@ -7,7 +7,7 @@ def roll(n)
end
end
-class AboutDiceSet < EdgeCase::Koan
+class AboutDiceProject < EdgeCase::Koan
def test_can_create_a_dice_set
dice = DiceSet.new
assert_not_nil dice
View
4 src/about_sandwich_code.rb
@@ -1,6 +1,6 @@
require File.expand_path(File.dirname(__FILE__) + '/edgecase')
-class AboutUsingBlocks < EdgeCase::Koan
+class AboutSandwichCode < EdgeCase::Koan
def count_lines(file_name)
file = open(file_name)
@@ -93,7 +93,7 @@ def find_line2(file_name)
def test_finding_lines2
assert_equal __("test\n"), find_line2("example_file.txt")
end
-
+
# ------------------------------------------------------------------
def count_lines3(file_name)
View
4 src/about_scoring_project.rb
@@ -7,7 +7,7 @@
# A greed roll is scored as follows:
#
# * A set of three ones is 1000 points
-#
+#
# * A set of three numbers (other than ones) is worth 100 times the
# number. (e.g. three fives is 500 points).
#
@@ -54,7 +54,7 @@ def score(dice)
#++
end
-class AboutScoringAssignment < EdgeCase::Koan
+class AboutScoringProject < EdgeCase::Koan
def test_score_of_an_empty_list_is_zero
assert_equal 0, score([])
end
View
4 src/about_triangle_project.rb
@@ -3,7 +3,7 @@
# You need to write the triangle method in the file 'triangle.rb'
require 'triangle.rb'
-class AboutTriangleAssignment < EdgeCase::Koan
+class AboutTriangleProject < EdgeCase::Koan
def test_equilateral_triangles_have_equal_sides
assert_equal :equilateral, triangle(2, 2, 2)
assert_equal :equilateral, triangle(10, 10, 10)
@@ -22,4 +22,4 @@ def test_scalene_triangles_have_no_equal_sides
assert_equal :scalene, triangle(5, 4, 2)
end
end
-
+
View
6 src/about_triangle_project_2.rb
@@ -3,14 +3,14 @@
# You need to write the triangle method in the file 'triangle.rb'
require 'triangle.rb'
-class AboutTriangleAssignment2 < EdgeCase::Koan
+class AboutTriangleProject2 < EdgeCase::Koan
# The first assignment did not talk about how to handle errors.
# Let's handle that part now.
def test_illegal_triangles_throw_exceptions
assert_raise(TriangleError) do triangle(0, 0, 0) end
assert_raise(TriangleError) do triangle(3, 4, -5) end
assert_raise(TriangleError) do triangle(1, 1, 3) end
- assert_raise(TriangleError) do triangle(2, 4, 2) end
+ assert_raise(TriangleError) do triangle(2, 4, 2) end
end
end
-
+

0 comments on commit ad99c37

Please sign in to comment.