Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the koans more IDE friendly #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

martinsson
Copy link

@martinsson martinsson commented Feb 14, 2022

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