Skip to content

Chapter 5 #8

@LNUitTutor

Description

@LNUitTutor
  • subsec. 5.1, p. 21 "LNNode >> testHasNextNode" should be "LNNodeTest >> testHasNextNode"
  • subsec. 5.2: confusion with node naming: in the previous subsection was declared "Document the mutators to inform users that the argument passed to name: should be a Symbol..." but on p. 22 in the code snippet "(LNNode new name: 'Mac' ; nextNode: (LNNode new name: 'PC1'))" we see strings. So, what we have to use: symbols or strings?
  • subsec. 5.3 holds the wrong instruction "Create an instance method named printOn: that puts the class name and name variable on the argument aStream." Why we need to put the class name? The test methods do not expect name of the class in the print string.
  • subsec. 5.4, p. 24: LNPacketTest >> testIsAddressedTo - self assert missed.
  • subsec. 5.5, p. 25: parentheses - fugitives. In the first code snipped "yourself) accept: (LNPacket new addresseeName: 'Mac')" should be "yourself )) accept: (LNPacket new addresseeName: 'Mac')". In the second one "LNWorkstation new" should be " ( LNWorkstation new".
  • subsec. 5.7, p. 27: "LNNode class >> simpleLan..." declaration missed of the temporary variables node3, packet . "mac := Workstation new name: 'mac'." should be "mac := LNWorkstation new name: 'mac'."

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