Skip to content

Symbols with spaces test ordering #14

@MariusDoe

Description

@MariusDoe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions