Skip to content

smite-ir/tests: Add and improve tests for mutators#95

Open
Chand-ra wants to merge 2 commits into
morehouse:masterfrom
Chand-ra:mutator_test_improvements
Open

smite-ir/tests: Add and improve tests for mutators#95
Chand-ra wants to merge 2 commits into
morehouse:masterfrom
Chand-ra:mutator_test_improvements

Conversation

@Chand-ra
Copy link
Copy Markdown

  • Refactor an InputSwapMutator test to use Program::validate() instead of manual constraint checks, providing stronger correctness guarantees with less code.
  • Assert that mutators (InputSwapMutator and OperationParamMutator) do not modify the Program if mutation is aborted (that is, if false is returned).

Chandra Pratap added 2 commits May 23, 2026 08:36
Replace manual checking of program constraints with
`Program::validate()`. In addition to simplication of the
test, this has the added benefit of stronger verification
of the mutator's behaviour.
Add tests to verify that `InputSwapMutator` and `OperationParamMutator`
don't modify the program if a `false` is returned.
@Chand-ra Chand-ra force-pushed the mutator_test_improvements branch from b92f083 to 443b86e Compare May 23, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant