Skip to content

Commit 911754f

Browse files
lynnlangitjamesrcounts
authored andcommitted
updated RectangleKataTDD w/ @dcoopersmith
1 parent 9b929ab commit 911754f

3 files changed

Lines changed: 4 additions & 34 deletions

File tree

src/main/java/org/teachingkidsprogramming/recipes/completed/section00demos/RecipeForTestingVirtualProctor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static void main(String[] args) throws Exception
2222
Tortoise.move(75);
2323
Tortoise.turn(360 / sides);
2424
Sound s = new Sound();
25-
s.setSound(Sound.TKPSound.LLCoolJYaKnow);
25+
s.setSound(Sound.TKPSound.BrainIsGone);
2626
s.playSound();
2727
}
2828
VirtualProctor.setClassName("TKPHouseAtHome");

src/main/java/org/teachingkidsprogramming/recipes/completed/section09final/SquareKataTDD.java renamed to src/main/java/org/teachingkidsprogramming/recipes/completed/section09final/RectangleKataTDD.java

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
package org.teachingkidsprogramming.recipes.completed.section09final;
22

3-
import static org.junit.Assert.assertEquals;
4-
53
import org.junit.Test;
64
import org.teachingextensions.approvals.lite.ApprovalWriter;
75
import org.teachingextensions.approvals.lite.Approvals;
86
import org.teachingextensions.logo.Tortoise;
97

108
//--------------------This recipe is in progress-------------------------------//
11-
public class SquareKataTDD
9+
public class RectangleKataTDD
1210
{
13-
// Draw a square
11+
// Draw a rectangle
1412
// HINT: Write each step in English FIRST, then translate to Java one line at a time
1513
// TIP: Be sure to run after each line of Java to make sure it works as expected
16-
// Write tests using the Assert object via the TDD style shown below
14+
// Write tests using the Approvals object via the TDD style shown below (using the 'Golden Master paradigm')
1715
// TIP: Fix this test to make it pass to get started
1816
@Test
19-
public void test1Returns1()
20-
{
21-
String result = FizzBuzzTDD.convert(1);
22-
assertEquals("1", result);
23-
}
24-
@Test
2517
public void testShowsTheTortoise() throws Exception
2618
{
2719
//Set up

src/main/java/org/teachingkidsprogramming/section09final/RectangleKataTDD.java

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)