Skip to content

Assert that a faulty command really has no effects #169

@jGleitz

Description

@jGleitz

When creating an ant on a blocked cell, my program produced an error message, but still added the ant to its index. When calling move afterwards, NullPointerExceptions occur. This was actually extremely hard to debug.

Therefore we should assert for all invalid commands that they really did not have any effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions