/hrm-level-outbox-generator

Human Resource Machine outbox generator for testing and benchmarking solutions

Primary LanguageJavaScript

npm Build and Deploy

hrm-level-outbox-generator

Human Resource Machine inbox generator for testing and benchmarking solutions.

Generates the outbox that is expected for a given level and inbox.

Methods

.generate(levelNumber, inbox)

levelNumber - Number. The level number (1-41).

inbox - Array. The inbox contents. Must be suitable for the level. You can use hrm-level-inbox-generator, grab examples from hrm-level-data or simply craft your own input.

returns - Array. If the generator doesn't support the given level, a null is returned.

Example

var generator = require('hrm-level-outbox-generator');

// Tripler Room
var outbox = generator.generate(8, [ 2, 4, 0, -5 ]); // [ 6, 12, 0, -15 ]