Skip to content

Support for combining Preconditions/Postconditions #138

@TricksterGuy

Description

@TricksterGuy

So the goal with the replay strings in pyLC3 is that it should be as minimal/concise as possible in describing the test

I would expect authors to use proper functions when writing autograders, however that may not always happen as expected.

For instance code like this

for i in arr:
  self.fillValue(address, i)
  address += 1

Would generate a single Precondition for each element in the array.

The proper style would be to call fillArray and give it the initial address and array which would generate one Precondition.

Come up with some smarter mechanisms to analyze the set of Preconditions being written and gently recommend to the author that they probably want a different function.

This would be easy for Arrays and Strings, but detecting arbitrary Nodes may be a bit more difficult to do.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions