mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-15 07:23:19 -04:00
Normalized file name and koan category name.
This commit is contained in:
@@ -7,7 +7,7 @@ class DiceSet
|
||||
end
|
||||
end
|
||||
|
||||
class AboutDiceSet < EdgeCase::Koan
|
||||
class AboutDiceProject < EdgeCase::Koan
|
||||
def test_can_create_a_dice_set
|
||||
dice = DiceSet.new
|
||||
assert_not_nil dice
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,7 +3,7 @@ require File.expand_path(File.dirname(__FILE__) + '/edgecase')
|
||||
# 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)
|
||||
|
||||
@@ -3,7 +3,7 @@ require File.expand_path(File.dirname(__FILE__) + '/edgecase')
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user