Project

General

Profile

Actions

Task #6539

closed

Support for variants in preparators and comparators

Added by Alexander Kamkin about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Andrei Tatarnikov
Category:
Template Processor
Target version:
Start date:
01/28/2016
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Published in build:
2.3.20

Description

There is a need to randomize preparators/comparators when generating test programs. A possible solution is to define several variants and randomly choose one of them.

preparator(mode, pattern) {
  variant(name, weight) {
    ori target, zero, 0
  }
  ...
  variant(name, weight) {
    sub target, target, target
  }
}
Actions

Also available in: Atom PDF