Skip to content

testIllegal doesn't initialize the empty set #52

@offray

Description

@offray
  • revision: Master @ 0638b16 (PDF)
  • page: 43

MyExampleSetTest >> testIllegal raises warnings in code assistant, as shown here:

It should be:

MyExampleSetTest >> testIllegal
  | empty |
  empty := Set new.
  self should: [ empty at: 5 ] raise: Error.
  self should: [ empty at: 5 put: #zork ] raise: Error

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