use v6.d;

use lib '.';
use lib './lib';

use DSL::English::QuantileRegressionWorkflows;

use Test;

plan 14;

multi toQRMon (Str $command ) {
    return ToQuantileRegressionWorkflowCode( $command, 'R-QRMon' );
}

#-----------------------------------------------------------
# Data transformation
#-----------------------------------------------------------

## 1
ok toQRMon('rescale x axis'),
        'rescale x axis';

## 2
ok toQRMon('rescale regressor axis'),
        'rescale regressor axis';

## 3
ok toQRMon('rescale y axis'),
        'rescale y axis';
## 4
ok toQRMon('rescale value axis'),
        'rescale value axis';
## 5
ok toQRMon('rescale both axes'),
        'rescale both axes';

## 6
ok toQRMon('resample'),
        'resample';

## 7
ok toQRMon('resample the time series with step 0.3'),
        'resample the time series with step 0.3';

## 8
ok toQRMon('resample with linear interpolation'),
        'resample with linear interpolation';

## 9
ok toQRMon('moving average using 5'),
        'moving average using 5';

## 10
ok toQRMon('moving median with 5 elements'),
        'moving average using 5';

## 11
ok toQRMon('moving average with weights 1, 2, 5'),
        'moving average with weights 1, 2, 5';

## 12
ok toQRMon('resample with hold value from left'),
        'resample with hold value from left';

## 13
ok toQRMon('resample with HoldValueFromLeft'),
        'resample with HoldValueFromLeft';

## 14
ok toQRMon('resample the time series'),
        'resample the time series';

done-testing;