Rust "Flower Field" tests disagree with description

The description of “Flower Field” says that empty input and output squares should be '.' (dot). The tests say they should be ' ' (space). This causes most of the tests to fail if the description is followed in the solution.

I would suggest changing the tests: working with whitespace in these kind of problems is a pain. I’m happy to file a PR if desired.

Thanks as always for Exercism.

Where do you see that?

Darn. Yeah, you’re right, I missed the part where it said dot in the example is equivalent to space in the actual code. Sincere apologies.

That said, we should probably just move to dot throughout to avoid this confusion?

Changing this exercise across all tracks seems like a bit change without much value. Spaces work pretty well outside of the instructions. The instructions work around it fairly well.

1 Like