Skip to content

Commit 93b98d9

Browse files
committed
Update flower field exercise
Update to add new test case from exercism/problem-specifications#2603.
1 parent 400f30a commit 93b98d9

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

exercises/practice/flower-field/.meta/tests.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ description = "cross"
4444

4545
[dd9d4ca8-9e68-4f78-a677-a2a70fd7a7b8]
4646
description = "large garden"
47+
48+
[6e4ac13a-3e43-4728-a2e3-3551d4b1a996]
49+
description = "multiple adjacent flowers"

exercises/practice/flower-field/run_test.v

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,13 @@ fn test_large_garden() {
165165
]
166166
assert annotate(garden) == expected
167167
}
168+
169+
fn test_multiple_adjacent_flowers() {
170+
garden := [
171+
' ** ',
172+
]
173+
expected := [
174+
'1**1',
175+
]
176+
assert annotate(garden) == expected
177+
}

0 commit comments

Comments
 (0)