AbstractAbstractdoDraw a value from tc, writing its representation to printer as it is drawn.
Only keep values that satisfy the predicate. A draw tries the engine's number of values (3) and rejects the test case if none satisfies it. It prints as this generator does, printing only the accepted value.
Generate a value, then use it to choose another generator. The first
value is not printed; the result prints as the chosen generator does,
so it is printable when f returns printable generators.
Transform generated values using a function. When the source has a schema, the schema is preserved. The result prints the transformed value as PrettyPrinter.value does; Mapped.printAsCall prints the source's draw instead.
Print each drawn value as PrettyPrinter.value does: the way to make a hand-written generator that only implements doDraw printable.
Print each drawn value by calling print with the value and the printer
positioned where it goes: the way to give a generator whose values have
no useful JavaScript representation (a function, a handle) a printed
form, or to print a value differently from how it prints as a value.
The generator keeps this one's label and schema.
A generator that can print what it draws: drawn with TestCase.draw, it writes the value's representation to the report's printer as it draws it. A container prints element by element through its elements' generators, so an element's own printing shows up inside it.
Implement doDrawAndPrint, drawing inner generators with TestCase.drawAndPrint so that they print in place, and leave doDraw to its default, which runs the same body with PrettyPrinter.noop: both must make exactly the same draws.
Example