Skip to content

Make the koans more IDE friendly#32

Open
martinsson wants to merge 2 commits into
cdarwin:masterfrom
martinsson:master
Open

Make the koans more IDE friendly#32
martinsson wants to merge 2 commits into
cdarwin:masterfrom
martinsson:master

Conversation

@martinsson

@martinsson martinsson commented Feb 14, 2022

Copy link
Copy Markdown

We had problems running it in Goland.

  1. the assert function was not visible from production code

Screenshot 2022-02-14 at 16 37 50

2. the IDE never saw that the test failed because of the explicit os.Exit instruction

Screenshot 2022-02-14 at 16 40 25

Some minor modifications made this a lot more pleasant solving them in Goland. Hope this helps

johan.martinsson and others added 2 commits February 14, 2022 16:35
- extract shared variables and functions so they will be visible from production code
- use the test framework to fail so that the IDE understands that the test fails and ends
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant