Age | Commit message (Collapse) | Author | Files | Lines |
|
This commit moves the shared behavior for iterative functions to
shared_behaviours/iterative_functions.
|
|
This updates the shared tests for iterative functions to also
be capable of handling reduce. This also adds missing tests
that were part of one of the individual tests earlier.
The test for reduce now also invokes the shared behavior for argument
checking.
|
|
This changes the reduce function to use the dispatchers to check
the block arity.
|
|
This moves all the iterative functions to the 4x function API.
Functions are now simpler to read. A shared utility module
was created for repeated asserts.
While testing it was clear that it is difficult to use
Puppet.lookup(:loaders), and the evaluator was changed to get the
loaders via the compiler instead.
The evaluator tests are changed to make use of the simplified
handling of the loaders.
The tests for the functions that have moved, were also moved, but
are unchanged in what they test.
|