Skip to content

Commit 1e514e0

Browse files
committed
bridge
1 parent 48f693d commit 1e514e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: structural/Bridage/bridage.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ func (c *Circle) Constructor(x int, y int, radius int, draw Draw) {
4646
c.shape.Shape(draw)
4747
}
4848

49-
func (c *Circle) Draw() {
49+
func (c *Circle) Cook() {
5050
c.shape.draw.DrawCircle(c.radius, c.x, c.y)
5151
}

Diff for: structural/Bridage/bridage_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ func TestCircle_Draw(t *testing.T) {
77
redCircle.Constructor(100, 100, 10, &RedCircle{})
88
yellowCircle := Circle{}
99
yellowCircle.Constructor(200, 200, 20, &YellowCircle{})
10-
redCircle.Draw()
11-
yellowCircle.Draw()
10+
redCircle.Cook()
11+
yellowCircle.Cook()
1212
}

0 commit comments

Comments
 (0)