swift icon indicating copy to clipboard operation
swift copied to clipboard

Explicit expectations

Open Atomic-Germ opened this issue 2 years ago • 2 comments

This will help to avoid needing to inspect the tests in order to understand the expected names and structures. It should be edited by a maintainer to better fit if needed.

Atomic-Germ avatar Apr 16 '22 18:04 Atomic-Germ

It would absolutely make sense to be doing this in the Swift track. The worst of the current way for me is needing to look at the test files just to know what to name various objects in the code. The least is just how much //Solution goes in Sources seems unfinished. I'll go back to this one and see how well I can fit it to the other compiled languages.

Atomic-Germ avatar Apr 19 '22 16:04 Atomic-Germ

I'll go back to this one and see how well I can fit it to the other compiled languages.

Here is a C# example: https://github.com/exercism/csharp/blob/main/exercises/practice/acronym/Acronym.cs

But dynamic languages sometimes also do this. See this Clojure example: https://github.com/exercism/clojure/blob/main/exercises/practice/anagram/src/anagram.clj

ErikSchierboom avatar Apr 19 '22 18:04 ErikSchierboom

I'm going to go ahead and merge this, and we can take a look at making stubs for all the exercises in a second pass.

kytrinyx avatar Dec 02 '22 10:12 kytrinyx