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

Symbols with spaces test ordering #14

Open
MariusDoe opened this issue Oct 23, 2022 · 0 comments
Open

Symbols with spaces test ordering #14

MariusDoe opened this issue Oct 23, 2022 · 0 comments

Comments

@MariusDoe
Copy link

In KoanAboutSymbols, test05symbolsCanBeMadeFromStrings and test06symbolsWithSpacesCanBeMade both show the creation of symbols with spaces (#'Cats and dogs'). The syntax (#'...') is first shown in the latter, leaving the student alone in figuring it out in the former. Also, the two tests are almost redundant.

A potential fix might be showing the creation of symbols without spaces from strings in the former (e. g. #Cats == 'Cats' asSymbol), while keeping the latter as it is. This way, the student doesn't need to figure out new syntax, because #Smalltalk (no space) is shown in the first test, and the symbol-with-spaces syntax is still shown in the latter for completeness.

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

No branches or pull requests

1 participant